]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
maint: fix quoting in autogen.sh
authorEric Blake <eblake@redhat.com>
Tue, 23 Feb 2010 00:01:31 +0000 (17:01 -0700)
committerJim Meyering <meyering@redhat.com>
Tue, 23 Feb 2010 20:31:17 +0000 (21:31 +0100)
* autogen.sh (srcdir, THEDIR, OBJ_DIR): Use proper quoting.
(.git-module-status): Abort if bootstrap fails.

autogen.sh

index 1ddc251ff2fb5ce005352cccad1d323b8cee806a..93538f9055b401f2ec755bb90fc98cda0ecf7139 100755 (executable)
@@ -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