Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-01-23 16:04:00 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-01-23 16:04:01 -0500
commit017ca1f4372e59be4132a40e229e638221d960db (patch)
tree7230cffeca4c340f3f9af86646be787b715d05e9 /build-aux
parentce08086b15a0009eb762dfbd2a77e99208a92308 (diff)
downloadtame-017ca1f4372e59be4132a40e229e638221d960db.tar.gz
tame-017ca1f4372e59be4132a40e229e638221d960db.tar.bz2
tame-017ca1f4372e59be4132a40e229e638221d960db.zip
suppmk-gen: Properly exit with non-zero status on failure
* build-aux/m4/calcdsl.m4: Exit on suppmk-gen. * build-aux/suppmk-gen: Exit on failure.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/m4/calcdsl.m42
-rwxr-xr-xbuild-aux/suppmk-gen2
2 files changed, 3 insertions, 1 deletions
diff --git a/build-aux/m4/calcdsl.m4 b/build-aux/m4/calcdsl.m4
index 50206f3..523549b 100644
--- a/build-aux/m4/calcdsl.m4
+++ b/build-aux/m4/calcdsl.m4
@@ -91,7 +91,7 @@ AC_OUTPUT
# we want this to run as part of the configure script, not during M4
# expansion
-"$CALCROOT/build-aux/suppmk-gen" $SRCPATHS
+"$CALCROOT/build-aux/suppmk-gen" $SRCPATHS || exit
AC_MSG_NOTICE([complete
diff --git a/build-aux/suppmk-gen b/build-aux/suppmk-gen
index 4cdf993..67822e7 100755
--- a/build-aux/suppmk-gen
+++ b/build-aux/suppmk-gen
@@ -17,6 +17,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##
+set -euo pipefail
+
echo "Generating suppliers.mk..."
# TODO: kluge; do properly.
rm -f suppliers.mk