]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
maketgz: return error if 'make dist' fails
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Feb 2022 08:33:38 +0000 (09:33 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Feb 2022 17:00:47 +0000 (18:00 +0100)
To better detect this problem in CI jobs

Reported-by: Marcel Raad
Bug: https://curl.se/mail/lib-2022-02/0070.html
Closes #8402

maketgz

diff --git a/maketgz b/maketgz
index d1351addf725e2d1da4a99878327ad0aafd92551..c8ab8a2891311c12bb7b5033cf4f4ea7917ca4f7 100755 (executable)
--- a/maketgz
+++ b/maketgz
@@ -9,7 +9,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -169,6 +169,12 @@ git log --pretty=fuller --no-color --date=short --decorate=full -1000 | ./script
 echo "make dist"
 targz="curl-$version.tar.gz"
 make -sj dist VERSION=$version
+res=$?
+
+if test "$res" != 0; then
+    echo "make dist failed"
+    exit 2
+fi
 
 ############################################################################
 #