Add a new rule to prepare release 1.1.1
authorCédric Villemain <cedric@2ndquadrant.fr>
Wed, 7 Dec 2011 11:47:29 +0000 (12:47 +0100)
committerCédric Villemain <cedric@2ndquadrant.fr>
Wed, 7 Dec 2011 11:47:29 +0000 (12:47 +0100)
and improve the orig.tar.gz for debian

Makefile
debian/rules

index 661f033c2655de5aad3e4b526da68df877f16fbe..ce04daa17a99a9ed9570670a8a6ecc67fc8ec3fe 100644 (file)
--- 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
index b24f4f0b1f4245fff4184e228f8051e333a44eae..8730c22443fabbd886f5e37f836c48876b19a0aa 100755 (executable)
@@ -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 $@