]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: work when using fallback shallow gnulib clone.
authorGary V. Vaughan <gary@gnu.org>
Fri, 12 Oct 2012 10:54:21 +0000 (17:54 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 12 Oct 2012 11:36:36 +0000 (18:36 +0700)
Bootstrapping without --gnulib-srcdir creates a shallow gnulib
clone to run gnulib-tool out of, except that the parent package
is almost certainly using a revision of gnulib before just tha
most recent 2 gnulib revisions.
* bootstrap (func_require_gnulib_submodule): Pull the most
recent 365 revisions, which ought to be enough for a well-
maintained parent package.
Don't forget to run 'git submodule update' to select the correct
gnulib revision.

bootstrap

index 2beabbc116d0f79c389a14d828026a0aea7fc730..3d8fed9f110aca69bca0f4519206438c29cd3514 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1388,11 +1388,14 @@ func_require_gnulib_submodule ()
 
         shallow=
         $GIT clone -h 2>&1 |func_grep_q -- --depth \
-            && shallow='--depth 2'
+            && shallow='--depth 365'
 
         func_show_eval "$GIT clone $shallow '$gnulib_url' '$gnulib_path'" \
           func_cleanup_gnulib
 
+        func_show_eval "$GIT submodule update" \
+            'func_fatal_error "Unable to update gnulib submodule."'
+
        # FIXME: Solaris /bin/sh will try to execute '-' if any of
        #        these signals are caught after this.
         trap - 1 2 13 15