[gnome-games] autogen.sh: Replace pushd and popd by cd
- From: Adrien Plazas <aplazas src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-games] autogen.sh: Replace pushd and popd by cd
 
- Date: Mon, 30 Jan 2017 09:05:43 +0000 (UTC)
 
commit 580a84fa61f7a4894d2c49ad3ca7986af0ee9779
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Jan 30 09:52:20 2017 +0100
    autogen.sh: Replace pushd and popd by cd
    
    Replace a call to pushd and a useless call to popd by a call to cd.
    
    This avoids problems when the used shell don't support these nonstandard
    commands.
 autogen.sh |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 8a2ddce..e275a9d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -8,7 +8,7 @@ test -z "$srcdir" && srcdir=.
         exit 1
 }
 
-pushd "$srcdir"
+cd "$srcdir"
 
 PKG_NAME=`autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac"`
 
@@ -27,8 +27,6 @@ intltoolize --force --copy --automake || exit 1
 autoreconf --verbose --force --install -Wno-portability || exit 1
 set +x
 
-popd
-
 if [ "$NOCONFIGURE" = "" ]; then
         set -x
         $srcdir/configure "$@" || exit 1
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]