build: use proper quoting in autogen.sh
authorJan Engelhardt <jengelh@medozas.de>
Thu, 11 Nov 2010 22:03:43 +0000 (23:03 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 11 Nov 2010 22:21:36 +0000 (23:21 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
autogen.sh

index 904cd67..90d2520 100755 (executable)
@@ -1,12 +1,12 @@
 #! /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 $?
 
-$srcdir/configure --enable-maintainer-mode "$@"
+exec "$srcdir/configure" --enable-maintainer-mode "$@"