autogen: use set -e to propagate errors

Previously we'd just blindly continue if e.g. autoreconf failed.
This commit is contained in:
Colin Walters 2013-06-20 12:03:31 -04:00 committed by Dan Williams
parent 805fc3a864
commit fe4e11c8d6

View file

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