Make the tarfile not spew its files into the current dir
authorkink-guest <kink-guest@b513b33f-fedd-0310-b452-c3deb5f4c849>
Tue, 2 Aug 2005 18:15:43 +0000 (18:15 +0000)
committerkink-guest <kink-guest@b513b33f-fedd-0310-b452-c3deb5f4c849>
Tue, 2 Aug 2005 18:15:43 +0000 (18:15 +0000)
but into a nice subdir.

git-svn-id: svn://svn.debian.org/pgp-tools/trunk@156 b513b33f-fedd-0310-b452-c3deb5f4c849

Makefile

index c5704e7fc447150d476bfd86aa72136459e1a525..48c73d263fb3032abc2b2fbbf5b960e7d2610162 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 DIRS=caff gpg-key2ps gpg-mailkeys gpgsigs
 VERSION=$(shell dpkg-parsechangelog 2>&1 | perl -ne 'print $$1 if /^Version: ([^-]*)/')
 TGZ=../signing-party_$(VERSION).orig.tar.gz
+TGZ_DIR=signing-party-$(VERSION)
 
 all:
        for dir in $(DIRS) ; do if [ -f $$dir/Makefile ] ; then $(MAKE) -C $$dir || exit 1 ; fi ; done
@@ -10,4 +11,8 @@ clean:
 
 dist:
        [ ! -f $(TGZ) ]
-       tar cvz -f $(TGZ) --exclude .svn --exclude debian .
+       mkdir $(TGZ_DIR)
+       for dir in $(DIRS) ; do cp -a $$dir $(TGZ_DIR); done
+       cp -a README TODO Makefile $(TGZ_DIR)
+       tar cvz -f $(TGZ) --exclude .svn $(TGZ_DIR)
+       rm -rf $(TGZ_DIR)