diff options
author | Bruno Haible <bruno@clisp.org> | 2022-07-25 10:21:42 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-07-25 10:21:42 +0200 |
commit | f00af4baf2c7416c5d7c4674c072ef2a51e40668 (patch) | |
tree | c3583c25181129fd0f56688fcdb17a0752c34390 /top/bootstrap | |
parent | 012d9a08a50313389e722e8279e7a8e207621b1d (diff) | |
download | gnulib-f00af4baf2c7416c5d7c4674c072ef2a51e40668.tar.gz |
bootstrap: Make the automatic sync more resilient.
Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2022-07/msg00060.html>.
* top/bootstrap (bootstrap_sync): Set to true when bootstrap-funclib.sh
is not present.
* top/gen-bootstrap.sed: Insert a couple of comment lines.
* build-aux/bootstrap: Regenerated using "make build-aux/bootstrap".
Diffstat (limited to 'top/bootstrap')
-rwxr-xr-x | top/bootstrap | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/top/bootstrap b/top/bootstrap index b7216d20fe..e9d8ad82aa 100755 --- a/top/bootstrap +++ b/top/bootstrap @@ -153,14 +153,7 @@ do --bootstrap-sync) bootstrap_sync=true;; --no-bootstrap-sync) - if test -f "$medir"/bootstrap-funclib.sh; then - bootstrap_sync=false - else - # We have only completed the first phase of an upgrade from a bootstrap - # version < 2022-07-24. Need to do the second phase now. - bootstrap_sync=true - fi - ;; + bootstrap_sync=false;; --no-git) use_git=false;; *) @@ -179,6 +172,12 @@ fi check_build_prerequisites $use_git +if ! test -f "$medir"/bootstrap-funclib.sh; then + # We have only completed the first phase of an upgrade from a bootstrap + # version < 2022-07-24. Need to do the second phase now. + bootstrap_sync=true +fi + if $bootstrap_sync; then prepare_GNULIB_SRCDIR upgrade_bootstrap |