From 816b0d5d6204d86c9501439ae4c5880d9b337200 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 27 Dec 2022 08:15:38 -0800 Subject: Support packages with just 'bootstrap' * top/bootstrap: With --version, also output library version. Support update of package that has only the bootstrap script, and not the other three files. * top/bootstrap-funclib.sh (scriptlibversion): Rename from scriptversion. All uses changed. This way we can distinguish script from script library versions. (upgrade_bootstrap): If the package currently has only the bootstrap script, just update that. --- top/bootstrap | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'top/bootstrap') diff --git a/top/bootstrap b/top/bootstrap index a4246c7e80..365c378d42 100755 --- a/top/bootstrap +++ b/top/bootstrap @@ -1,7 +1,7 @@ #! /bin/sh # Bootstrap this package from checked-out sources. -scriptversion=2022-12-27.04; # UTC +scriptversion=2022-12-27.05; # UTC # Copyright (C) 2003-2022 Free Software Foundation, Inc. # @@ -132,7 +132,7 @@ do exit;; --version) set -e - echo "bootstrap $scriptversion" + echo "bootstrap $scriptversion lib $scriptlibversion" echo "$copyright" exit 0 ;; @@ -168,12 +168,6 @@ 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 -- cgit v1.2.1