summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-10 22:52:28 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:29:53 +0000
commit653c0debc81f1d3cd8c975c5bb8a2bdaa597c560 (patch)
treec7cb88654124879a3c016d0365728809a9f9c35b
parentbbed66fb47c7afe109e5a1324d0ed843f2dbae60 (diff)
downloadgnurl-653c0debc81f1d3cd8c975c5bb8a2bdaa597c560.tar.gz
gnurl-653c0debc81f1d3cd8c975c5bb8a2bdaa597c560.tar.bz2
gnurl-653c0debc81f1d3cd8c975c5bb8a2bdaa597c560.zip
maketgz: remove old *.dist files before making the tarball
To avoid "old crap" unintentionally getting shipped. Bug: https://curl.haxx.se/mail/lib-2017-08/0050.html Reported-by: Christian Weisgerber
-rwxr-xr-xmaketgz7
1 files changed, 7 insertions, 0 deletions
diff --git a/maketgz b/maketgz
index c5e567512..f2f2c5dda 100755
--- 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