From 017ca1f4372e59be4132a40e229e638221d960db Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 23 Jan 2019 16:04:00 -0500 Subject: [PATCH] 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. --- build-aux/m4/calcdsl.m4 | 2 +- build-aux/suppmk-gen | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-aux/m4/calcdsl.m4 b/build-aux/m4/calcdsl.m4 index 50206f30..523549b7 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 4cdf9931..67822e79 100755 --- a/build-aux/suppmk-gen +++ b/build-aux/suppmk-gen @@ -17,6 +17,8 @@ # along with this program. If not, see . ## +set -euo pipefail + echo "Generating suppliers.mk..." # TODO: kluge; do properly. rm -f suppliers.mk