]> granicus.if.org Git - curl/commitdiff
maketgz: remove old *.dist files before making the tarball
authorDaniel Stenberg <daniel@haxx.se>
Thu, 10 Aug 2017 20:52:28 +0000 (22:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Aug 2017 20:56:49 +0000 (22:56 +0200)
To avoid "old crap" unintentionally getting shipped.

Bug: https://curl.haxx.se/mail/lib-2017-08/0050.html
Reported-by: Christian Weisgerber
maketgz

diff --git a/maketgz b/maketgz
index e377c9b73a90551c2d8850462bc8e752318ad4ab..b740173dbf8aff89e78ac82d1a798954e2bf3b4f 100755 (executable)
--- a/maketgz
+++ b/maketgz
@@ -50,6 +50,13 @@ if test -z "$patch"; then
     exit
 fi
 
+#
+# As a precaution, remove all *.dist files that may be lying around, to reduce
+# the risk of old leftovers getting shipped. The root 'Makefile.dist' is the
+# exception.
+echo "removing all old *.dist files"
+find . -name "*.dist" -a ! -name Makefile.dist -exec rm {} \;
+
 numeric=`perl -e 'printf("%02x%02x%02x\n", '"$major, $minor, $patch);"`
 
 HEADER=include/curl/curlver.h