summaryrefslogtreecommitdiff
path: root/build-aux/bootstrap
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-07-25 10:21:42 +0200
committerBruno Haible <bruno@clisp.org>2022-07-25 10:21:42 +0200
commitf00af4baf2c7416c5d7c4674c072ef2a51e40668 (patch)
treec3583c25181129fd0f56688fcdb17a0752c34390 /build-aux/bootstrap
parent012d9a08a50313389e722e8279e7a8e207621b1d (diff)
downloadgnulib-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 'build-aux/bootstrap')
-rwxr-xr-xbuild-aux/bootstrap37
1 files changed, 20 insertions, 17 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index b51be4bc00..a54c995798 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -1,4 +1,8 @@
#! /bin/sh
+# DO NOT EDIT! GENERATED AUTOMATICALLY!
+# This script is only a trampoline that fetches the companion scripts
+# (bootstrap-funclib.sh, autopull.sh, autogen.sh).
+
# Bootstrap this package from checked-out sources.
# Copyright (C) 2003-2022 Free Software Foundation, Inc.
@@ -17,12 +21,12 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Originally written by Paul Eggert. The canonical version of this
-# script is maintained as build-aux/bootstrap in gnulib. However,
-# to be useful to your package, you should place a copy of it under
-# version control in the top-level directory of your package. The
-# intent is that all customization can be done with a bootstrap.conf
-# file also maintained in your version control; gnulib comes with a
-# template build-aux/bootstrap.conf to get you started.
+# script is maintained as top/bootstrap in gnulib. However, to be
+# useful to your package, you should place a copy of it under version
+# control in the top-level directory of your package. The intent is
+# that all customization can be done with a bootstrap.conf file also
+# maintained in your version control; gnulib comes with a template
+# build-aux/bootstrap.conf to get you started.
# Please report bugs or propose patches to bug-gnulib@gnu.org.
@@ -51,9 +55,9 @@ medir=`dirname "$me"`
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Originally written by Paul Eggert. The canonical version of this
-# script is maintained as build-aux/bootstrap-funclib.sh in gnulib.
-# However, to be useful to your package, you should place a copy of it
-# under version control in the top-level directory of your package. The
+# script is maintained as top/bootstrap-funclib.sh in gnulib. However,
+# to be useful to your package, you should place a copy of it under
+# version control in the top-level directory of your package. The
# intent is that all customization can be done with a bootstrap.conf
# file also maintained in your version control; gnulib comes with a
# template build-aux/bootstrap.conf to get you started.
@@ -747,14 +751,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;;
*)
@@ -773,6 +770,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