summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-01-31 12:43:58 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-01-31 12:59:46 +0000
commitaef80bc9e112cb3ff607791b697a27c67e827ce8 (patch)
tree9b01aaf298390214efaeb2a4bd66dc4bd1a7c3cf /autogen.sh
parent80f20ce62c45ee76e73deeb5e0bcf52eee534d64 (diff)
downloadlibepoxy-aef80bc9e112cb3ff607791b697a27c67e827ce8.tar.gz
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.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh4
1 files 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