]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: make ensure_changelog work for update mode projects.
authorGary V. Vaughan <gary@gnu.org>
Sun, 15 Sep 2013 13:35:15 +0000 (20:35 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sun, 15 Sep 2013 13:40:07 +0000 (20:40 +0700)
* gl/build-aux/bootstrap.in (func_bootstrap): Move
func_changelog_ensure invocation from here...
(func_reconfigure): ...to here. If gnulib_modules is empty, then
grep gnulib-cache.m4 for gitlog-to-changelog before invoking
func_changelog_ensure.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/bootstrap.in

index e123a8b7ccd690a7596fff34512eb2ee14d90488..803380a0848b8ba702164c86758162c107807113 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -2461,10 +2461,6 @@ func_bootstrap ()
     # Post-option preparation.
     func_prep
 
-    # Ensure ChangeLog presence.
-    func_ifcontains "$gnulib_modules" gitlog-to-changelog \
-      func_ensure_changelog
-
     # Reconfigure the package.
     func_reconfigure
 
@@ -2545,6 +2541,19 @@ func_reconfigure ()
 {
     $debug_cmd
 
+    # Ensure ChangeLog presence.
+    if test -n "$gnulib_modules"; then
+      func_ifcontains "$gnulib_modules" gitlog-to-changelog \
+        func_ensure_changelog
+    else
+      $require_gnulib_cache
+      if sed -n '/^gl_MODULES(\[/,/^])$/p' $gnulib_cache |
+         func_grep_q gitlog-to-changelog
+      then
+        func_ensure_changelog
+      fi
+    fi
+
     # Released 'autopoint' has the tendency to install macros that have
     # been obsoleted in current 'gnulib., so run this before 'gnulib-tool'.
     func_autopoint
index e58cde5da88a25c4061063f16f453142ffc93046..550a642937635ae3b10386153644327cf1121df8 100755 (executable)
@@ -271,10 +271,6 @@ func_bootstrap ()
     # Post-option preparation.
     func_prep
 
-    # Ensure ChangeLog presence.
-    func_ifcontains "$gnulib_modules" gitlog-to-changelog \
-      func_ensure_changelog
-
     # Reconfigure the package.
     func_reconfigure
 
@@ -355,6 +351,19 @@ func_reconfigure ()
 {
     $debug_cmd
 
+    # Ensure ChangeLog presence.
+    if test -n "$gnulib_modules"; then
+      func_ifcontains "$gnulib_modules" gitlog-to-changelog \
+        func_ensure_changelog
+    else
+      $require_gnulib_cache
+      if sed -n '/^gl_MODULES(\[/,/^])$/p' $gnulib_cache |
+         func_grep_q gitlog-to-changelog
+      then
+        func_ensure_changelog
+      fi
+    fi
+
     # Released 'autopoint' has the tendency to install macros that have
     # been obsoleted in current 'gnulib., so run this before 'gnulib-tool'.
     func_autopoint