summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-02-08 09:33:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-02-08 18:00:47 +0100
commite3e0eb4d30000e6c4f14dae490dde94effa07991 (patch)
tree9acb0a6cf599b3cfb12dfce355c19ef1d0bb6b3c /maketgz
parent5c55fe6df605b822bb637bdf0cf05b6812dcd732 (diff)
downloadcurl-e3e0eb4d30000e6c4f14dae490dde94effa07991.tar.gz
maketgz: return error if 'make dist' fails
To better detect this problem in CI jobs Reported-by: Marcel Raad Bug: https://curl.se/mail/lib-2022-02/0070.html Closes #8402
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz8
1 files changed, 7 insertions, 1 deletions
diff --git a/maketgz b/maketgz
index d1351addf..c8ab8a289 100755
--- 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
############################################################################
#