Index: Makefile.in
===================================================================
RCS file: /tcpdump/master/tcpdump/Makefile.in,v
retrieving revision 1.317
diff -u -r1.317 Makefile.in
--- Makefile.in	24 Sep 2007 23:46:26 -0000	1.317
+++ Makefile.in	2 Oct 2007 02:41:11 -0000
@@ -206,7 +206,13 @@
 releasetar:
 	@cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \
 	   list="" ; make distclean; cd ..; mkdir -p n; cd n; ln -s ../$$dir $$name; \
-	   tar -c -z -f $$name.tar.gz $$name/. ;
+	   tar --exclude CVS -c -z -f $$name.tar.gz $$name/. ; \
+	   tar -t -z -f $$name.tar.gz | \
+	     sed -e "s|$$name/./||g" | \
+	     grep -v ^"tests/" | \
+	     grep -v "/"$$ | sort > FILES.done; \
+	   echo "Compareing FILES to tar:" ; \
+	   sort $$name/FILES | diff -u - FILES.done ;
 
 depend: $(GENSRC)
 	${srcdir}/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)
