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.
master
Mike Gerwitz 2019-01-23 16:04:00 -05:00
parent ce08086b15
commit 017ca1f437
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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