aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-02-22 17:01:31 -0700
committerJim Meyering <meyering@redhat.com>2010-02-23 21:31:17 +0100
commitf1ef0e31d2cdf2f4d4ecc28eeab43614b9187ba4 (patch)
tree4bab18a425c6125a8f749c88d1a31030792e0b17 /autogen.sh
parentbuild: update gnulib submodule to latest (diff)
downloadlibvirt-f1ef0e31d2cdf2f4d4ecc28eeab43614b9187ba4.tar.gz
libvirt-f1ef0e31d2cdf2f4d4ecc28eeab43614b9187ba4.tar.bz2
libvirt-f1ef0e31d2cdf2f4d4ecc28eeab43614b9187ba4.zip
maint: fix quoting in autogen.sh
* autogen.sh (srcdir, THEDIR, OBJ_DIR): Use proper quoting. (.git-module-status): Abort if bootstrap fails.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 1ddc251ff..93538f905 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,11 +1,11 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
-srcdir=`dirname $0`
+srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
-cd $srcdir
+cd "$srcdir"
DIE=0
(autopoint --version) < /dev/null > /dev/null 2>&1 || {
@@ -70,7 +70,10 @@ if test "$t" = "$(cat $curr_status 2>/dev/null)"; then
: # good, it's up to date
else
echo running bootstrap...
- ./bootstrap && echo "$t" > $curr_status
+ ./bootstrap && echo "$t" > $curr_status || {
+ echo "Failed to bootstrap gnulib, please investigate."
+ exit 1;
+ }
fi
# Automake requires that ChangeLog exist.
@@ -78,9 +81,9 @@ touch ChangeLog
autoreconf -if
-cd $THEDIR
+cd "$THEDIR"
-if test x$OBJ_DIR != x; then
+if test "x$OBJ_DIR" != x; then
mkdir -p "$OBJ_DIR"
cd "$OBJ_DIR"
fi