releasetar target fixed up.
authormcr <mcr>
Tue, 24 Jul 2007 02:39:55 +0000 (02:39 +0000)
committermcr <mcr>
Tue, 24 Jul 2007 02:39:55 +0000 (02:39 +0000)
Makefile.in

index 929d7f1f15f280ae4c9cb5e85b03a900b4dfa26d..b0e5c94e2e4b5e2c48b9810c4442d956f4eae34a 100644 (file)
@@ -17,7 +17,7 @@
 #  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
-# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.293.2.5 2007-03-28 07:45:45 hannes Exp $ (LBL)
+# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.293.2.6 2007-07-24 02:39:55 mcr Exp $ (LBL)
 
 #
 # Various configurable paths (remember to edit Makefile.in, not Makefile)
@@ -183,19 +183,10 @@ distclean:
 tags: $(TAGFILES)
        ctags -wtd $(TAGFILES)
 
-tar:
+releasetar:
        @cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \
-           list="" ; tar="tar chf" ; \
-           for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
-           echo \
-           "rm -f ../$$name; ln -s $$dir ../$$name" ; \
-            rm -f ../$$name; ln -s $$dir ../$$name ; \
-           echo \
-           "(cd .. ; $$tar - [lots of files]) | compress > /tmp/$$name.tar.Z" ; \
-            (cd .. ; $$tar - $$list) | compress > /tmp/$$name.tar.Z ; \
-           echo \
-           "rm -f ../$$name" ; \
-            rm -f ../$$name
+          list="" ; make distclean; cd ..; mkdir -p n; cd n; ln -s ../$$dir $$name; \
+          tar -c -z -f $$name.tar.gz $$name/. ;
 
 depend: $(GENSRC)
        ${srcdir}/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)