From 54dd8affca53ca3bcf63631fb93888ac5cf87421 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Villemain?= Date: Wed, 7 Dec 2011 12:47:29 +0100 Subject: [PATCH] Add a new rule to prepare release and improve the orig.tar.gz for debian --- Makefile | 3 +++ debian/rules | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 661f033..ce04daa 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,9 @@ endif # VPATH PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) +pgfoundry: + git archive --prefix=$(EXTENSION)-$(EXTVERSION)/ -o $(EXTENSION)-v$(EXTVERSION).tar.gz HEAD + deb: make clean make -f debian/rules debian/control diff --git a/debian/rules b/debian/rules index b24f4f0..8730c22 100755 --- a/debian/rules +++ b/debian/rules @@ -37,7 +37,7 @@ override_dh_auto_install: +pg_buildext install $(SRCDIR) $(TARGET) postgresql-%v-$(EXTNAME) orig: clean - git archive -o ../$(EXTNAME)_$(PKGVERS).orig.tar.gz HEAD + git archive --prefix=$(EXTNAME)-$(PKGVERS)/ -o ../$(EXTNAME)_$(PKGVERS).orig.tar.gz HEAD %: dh $@ -- 2.39.5