Fix bashism in autogen.sh

https://bugzilla.gnome.org/show_bug.cgi?id=780215
This commit is contained in:
Matthias Liertzer 2017-03-17 15:07:15 +01:00 committed by Florian Müllner
parent 6362b3d057
commit 9b7304488e

View File

@ -4,7 +4,9 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
pushd $srcdir
olddir="$(pwd)"
cd "${srcdir}"
(test -f configure.ac \
&& test -d src) || {
@ -26,8 +28,8 @@ gtkdocize --copy || exit 1
intltoolize --force --copy --automake || exit 1
autoreconf --verbose --force --install || exit 1
popd
cd "${olddir}"
if [ "$NOCONFIGURE" = "" ]; then
$srcdir/configure "$@" || exit 1
"${srcdir}/configure" "$@" || exit 1
fi