bootstrap: avoid failure when there is no .gitmodules file
authorJim Meyering <meyering@redhat.com>
Fri, 14 Jan 2011 08:43:00 +0000 (09:43 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 20 Jan 2011 07:52:31 +0000 (08:52 +0100)
": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
has been assigned to, even when its value is the empty string.
* build-aux/bootstrap (gnulib_path): Test explicitly for an empty
"$gnulib_path", rather than using ${gnulib_path=gnulib}.
Reported by John W. Eaton <jwe@gnu.org>.

ChangeLog
build-aux/bootstrap

index 1676803..85e510e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-01-14  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: avoid failure when there is no .gitmodules file
+       ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
+       has been assigned to, even when its value is the empty string.
+       * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
+       "$gnulib_path", rather than using ${gnulib_path=gnulib}.
+       Reported by John W. Eaton <jwe@gnu.org>.
+
 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        assume <ctype.h>, ..., <time.h> exist
index ecf2517..25bc53b 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2010-11-20.03; # UTC
+scriptversion=2011-01-14.08; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -462,7 +462,7 @@ git_modules_config () {
 }
 
 gnulib_path=`git_modules_config submodule.gnulib.path`
-: ${gnulib_path=gnulib}
+test -z "$gnulib_path" && gnulib_path=gnulib
 
 # Get gnulib files.