]> Savannah Git Hosting - gnulib.git/commitdiff
Bootstrap with functions, not scripts
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Dec 2022 16:15:37 +0000 (08:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Dec 2022 18:02:41 +0000 (10:02 -0800)
* top/bootstrap: Use autopull and autogen functions, not
shell scripts.  This lets build-aux/bootstrap become a
standalone script.  It does not change the behavior of
top/bootstrap, except for minor rewording of disagnostics.

ChangeLog
build-aux/bootstrap
top/bootstrap

index 21dbc68b1043ce76185acb392f70363a4530516a..53c645a55f0c122a831e722ee014c216869e187d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2022-12-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+       Bootstrap with functions, not scripts
+       * top/bootstrap: Use autopull and autogen functions, not
+       shell scripts.  This lets build-aux/bootstrap become a
+       standalone script.  It does not change the behavior of
+       top/bootstrap, except for minor rewording of disagnostics.
+
        Make autopull a shell function too
        This does not change behavior.  It is helpful for future changes.
        * top/autopull.sh: Call autopull to do the actual work.
index 78e307c5efccc918a15953f21dbbeca3b6b03ef0..2c81b0f26e69cb52cb11528c524ac3b676924670 100755 (executable)
@@ -5,7 +5,7 @@
 
 # Bootstrap this package from checked-out sources.
 
-scriptversion=2022-12-27.03; # UTC
+scriptversion=2022-12-27.04; # UTC
 
 # Copyright (C) 2003-2022 Free Software Foundation, Inc.
 #
@@ -1462,25 +1462,23 @@ fi
 
 echo "$0: Bootstrapping from checked-out $package sources..."
 
-# Pass GNULIB_SRCDIR to autopull.sh and autogen.sh.
+# Pass GNULIB_SRCDIR and GNULIB_REFDIR to any subsidiary commands that care.
 export GNULIB_SRCDIR
-
-# Pass GNULIB_REFDIR to autopull.sh.
 export GNULIB_REFDIR
 
 if $use_git || test -z "$SKIP_PO"; then
-  "$medir"/autopull.sh \
+  autopull \
       `if $bootstrap_sync; then echo ' --bootstrap-sync'; else echo ' --no-bootstrap-sync'; fi` \
       `if test -z "$checkout_only_file"; then echo ' --force'; fi` \
       `if ! $use_git; then echo ' --no-git'; fi` \
       `if test -n "$SKIP_PO"; then echo ' --skip-po'; fi` \
-    || die "autopull.sh failed."
+    || die "could not fetch auxiliary files"
 fi
 
-"$medir"/autogen.sh \
+autogen \
     `if $copy; then echo ' --copy'; fi` \
     `if test -z "$checkout_only_file"; then echo ' --force'; fi` \
-  || die "autogen.sh failed."
+  || die "could not generate auxiliary files"
 
 # ----------------------------------------------------------------------------
 
index 9d31b4311cf5aa9219e2b1ed150f8d3e591544b1..a4246c7e800cd7beb771fdb2eb231e74483fda6c 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Bootstrap this package from checked-out sources.
 
-scriptversion=2022-12-27.03; # UTC
+scriptversion=2022-12-27.04; # UTC
 
 # Copyright (C) 2003-2022 Free Software Foundation, Inc.
 #
@@ -183,25 +183,23 @@ fi
 
 echo "$0: Bootstrapping from checked-out $package sources..."
 
-# Pass GNULIB_SRCDIR to autopull.sh and autogen.sh.
+# Pass GNULIB_SRCDIR and GNULIB_REFDIR to any subsidiary commands that care.
 export GNULIB_SRCDIR
-
-# Pass GNULIB_REFDIR to autopull.sh.
 export GNULIB_REFDIR
 
 if $use_git || test -z "$SKIP_PO"; then
-  "$medir"/autopull.sh \
+  autopull \
       `if $bootstrap_sync; then echo ' --bootstrap-sync'; else echo ' --no-bootstrap-sync'; fi` \
       `if test -z "$checkout_only_file"; then echo ' --force'; fi` \
       `if ! $use_git; then echo ' --no-git'; fi` \
       `if test -n "$SKIP_PO"; then echo ' --skip-po'; fi` \
-    || die "autopull.sh failed."
+    || die "could not fetch auxiliary files"
 fi
 
-"$medir"/autogen.sh \
+autogen \
     `if $copy; then echo ' --copy'; fi` \
     `if test -z "$checkout_only_file"; then echo ' --force'; fi` \
-  || die "autogen.sh failed."
+  || die "could not generate auxiliary files"
 
 # ----------------------------------------------------------------------------