From 009a28943c510b0de93b903ca191e586d08cd2e9 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 13 Apr 2016 16:14:23 -0700 Subject: [build] Fail configure if a mason command fails --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index efcf63d01f..1a8337d63e 100755 --- a/configure +++ b/configure @@ -39,7 +39,8 @@ function print_flags { if [ ! -z ${!VERSION:-} ] ; then mason install ${NAME} ${!VERSION} for FLAGS in "$@" ; do - CONFIG+=" '${NAME}_${FLAGS}%': $(quote_flags $(mason ${FLAGS} ${NAME} ${!VERSION})),"$LN + flags=$(mason ${FLAGS} ${NAME} ${!VERSION}) || exit 1 + CONFIG+=" '${NAME}_${FLAGS}%': $(quote_flags $flags),"$LN done else warn "* Not using ${NAME}" -- cgit v1.2.1