From aef80bc9e112cb3ff607791b697a27c67e827ce8 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 31 Jan 2017 12:43:58 +0000 Subject: [PATCH] build: Ensure that autogen exits with the right code Since autogen.sh calls other commands that may fail, we should return the exit code from those commands. --- autogen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 79ece34..f4cdee4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,9 +6,9 @@ test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd "$srcdir" -autoreconf -v --install || exit 1 +autoreconf -v --install || exit $? cd "$ORIGDIR" || exit $? if test -z "$NOCONFIGURE"; then - "$srcdir/configure" "$@" + exec "$srcdir/configure" "$@" fi