[Pgp-tools-commit] r156 - trunk

Thijs Kinkhorst kink-guest at costa.debian.org
Tue Aug 2 18:15:44 UTC 2005


Author: kink-guest
Date: 2005-08-02 18:15:43 +0000 (Tue, 02 Aug 2005)
New Revision: 156

Modified:
   trunk/Makefile
Log:
Make the tarfile not spew its files into the current dir
but into a nice subdir.


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2005-07-29 08:56:18 UTC (rev 155)
+++ trunk/Makefile	2005-08-02 18:15:43 UTC (rev 156)
@@ -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 @@
 
 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)





More information about the Pgp-tools-commit mailing list