Replaced pushd and popd with equivalent shell code.
authorJeff Garzik <jgarzik@src.gnome.org>
Wed, 25 Nov 1998 17:32:21 +0000 (17:32 +0000)
committerJeff Garzik <jgarzik@src.gnome.org>
Wed, 25 Nov 1998 17:32:21 +0000 (17:32 +0000)
pushd and popd are not supported outside of bash (and csh?).

autogen.sh

index 29f73cb..a860ab8 100755 (executable)
@@ -4,7 +4,8 @@
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
-pushd $srcdir
+ORIGDIR=`pwd`
+cd $srcdir
 PROJECT=GLib
 TEST_TYPE=-f
 FILE=glib.h
@@ -60,7 +61,7 @@ aclocal $ACLOCAL_FLAGS
 
 automake $am_opt
 autoconf
-popd
+cd $ORIGDIR
 
 $srcdir/configure "$@"