[PATCH 2/5] build: use proper quoting in autogen.sh
Jan Engelhardt
jengelh at medozas.de
Sun Nov 28 06:47:00 PST 2010
Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
---
autogen.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
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 "$@"
--
1.7.1
More information about the xorg
mailing list