summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 984fb09..0006de8 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,15 +1,14 @@
#! /bin/sh
-
-srcdir=`dirname $0`
+srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
-cd $srcdir
+cd "$srcdir"
autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
+cd "$ORIGDIR" || exit $?
if test -z "$NOCONFIGURE"; then
- exec $srcdir/configure "$@"
+ exec "$srcdir"/configure "$@"
fi