autogen: use set -e to propagate errors
authorColin Walters <walters@verbum.org>
Thu, 20 Jun 2013 16:03:31 +0000 (12:03 -0400)
committerDan Williams <dcbw@redhat.com>
Thu, 20 Jun 2013 21:14:08 +0000 (16:14 -0500)
Previously we'd just blindly continue if e.g. autoreconf failed.

autogen.sh

index 54ae4ec..1b56207 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
+set -e
+
 srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
+if test -z "$srcdir"; then
+    srcdir=.
+fi
 
 olddir=`pwd`
 
@@ -25,11 +29,11 @@ if test -d $srcdir/.git; then
     git submodule update
 fi
 
-gtkdocize || exit 1
+gtkdocize
 autopoint --force
 AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
 
 cd $olddir
 if test -z "$NOCONFIGURE"; then
-       $srcdir/configure --enable-maintainer-mode "$@"
+       exec $srcdir/configure --enable-maintainer-mode "$@"
 fi