Commit b86fc752727a82547b4a06959658f9e5dfa886a9

Jan Engelhardt 2010-11-11T23:03:43

build: use proper quoting in autogen.sh Signed-off-by: Jan Engelhardt <jengelh@medozas.de>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/autogen.sh b/autogen.sh
index 904cd67..90d2520 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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 "$@"