bootstrap: fail when bootstrap_post_import_hook fails
authorJim Meyering <meyering@redhat.com>
Sat, 21 Jan 2012 17:12:30 +0000 (18:12 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 21 Jan 2012 17:12:43 +0000 (18:12 +0100)
Otherwise, it's far too easy to miss diagnostics emitted
between gnulib-tool's output and that of running configure.
* build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.

ChangeLog
build-aux/bootstrap

index b9119d5..668ce21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-01-21  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: fail when bootstrap_post_import_hook fails
+       Otherwise, it's far too easy to miss diagnostics emitted
+       between gnulib-tool's output and that of running configure.
+       * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
+
 2012-01-17  Jim Meyering  <meyering@redhat.com>
 
        maint: enable sc_trailing_blank
index 57202fa..6910abf 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2012-01-18.21; # UTC
+scriptversion=2012-01-21.16; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -807,7 +807,8 @@ for file in $gnulib_files; do
   symlink_to_dir "$GNULIB_SRCDIR" $file || exit
 done
 
-bootstrap_post_import_hook
+bootstrap_post_import_hook \
+  || { echo >&2 "$me: bootstrap_post_import_hook failed"; exit 1; }
 
 # Remove any dangling symlink matching "*.m4" or "*.[ch]" in some
 # gnulib-populated directories.  Such .m4 files would cause aclocal to fail.