[gnome-shell] Fix bashism in autogen.sh
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix bashism in autogen.sh
- Date: Thu, 11 May 2017 13:54:45 +0000 (UTC)
commit 9b7304488e17473877d6b805a9c68b55d3a8a68a
Author: Matthias Liertzer <matthias liertzer at>
Date: Fri Mar 17 15:07:15 2017 +0100
Fix bashism in autogen.sh
https://bugzilla.gnome.org/show_bug.cgi?id=780215
autogen.sh | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 560dab8..0734753 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]