]> Savannah Git Hosting - gnulib.git/commitdiff
bootstrap-funclib.sh: shrink or split too-long lines
authorJim Meyering <meyering@meta.com>
Sat, 29 Jun 2024 22:08:19 +0000 (15:08 -0700)
committerJim Meyering <meyering@meta.com>
Sat, 29 Jun 2024 22:12:54 +0000 (15:12 -0700)
* top/bootstrap-funclib.sh: The generated bootstrap file had lines
lines that triggered a syntax-check failure.  Sure, I could have
exempted this file, but it was easy to comply.  Besides, this also
fixed a quoting bug in the event that ${GNULIB_URL:-$default_gnulib_url}
had a value requiring double quotes.
* build-aux/bootstrap: Regenerate.

ChangeLog
build-aux/bootstrap
top/bootstrap-funclib.sh

index 30424d8fbcb40c26a692bddabe09b7ae1273cac4..e55831aaef34770812ab9234c89248f19f5fc049 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-06-29  Jim Meyering  <meyering@meta.com>
+
+       bootstrap-funclib.sh: shrink or split too-long lines
+       * top/bootstrap-funclib.sh: The generated bootstrap file had lines
+       lines that triggered a syntax-check failure.  Sure, I could have
+       exempted this file, but it was easy to comply.  Besides, this also
+       fixed a quoting bug in the event that ${GNULIB_URL:-$default_gnulib_url}
+       had a value requiring double quotes.
+       * build-aux/bootstrap: Regenerate.
+
 2024-06-29  Bruno Haible  <bruno@clisp.org>
 
        tests: Avoid test failures due to VirtualBox specific bug.
index 6295b8a128f667ea3f317e04efea28c9be526dca..56ffbe4dfce8ae448fc57c35b4133403307f5518 100755 (executable)
@@ -528,7 +528,7 @@ prepare_GNULIB_SRCDIR ()
       if test -n "$GNULIB_REFDIR" && test -d "$GNULIB_REFDIR"/.git; then
         # Use GNULIB_REFDIR as a reference.
         echo "$0: getting gnulib files..."
-        git submodule update --init --reference "$GNULIB_REFDIR" "$gnulib_path" \
+        git submodule update --init --reference "$GNULIB_REFDIR" "$gnulib_path"\
           || exit $?
       else
         # GNULIB_REFDIR is not set or not usable. Ignore it.
@@ -546,12 +546,13 @@ prepare_GNULIB_SRCDIR ()
         # The subdirectory 'gnulib' does not yet exist. Clone into it.
         echo "$0: getting gnulib files..."
         trap cleanup_gnulib HUP INT PIPE TERM
+        gnulib_url=${GNULIB_URL:-$default_gnulib_url}
         shallow=
         if test -z "$GNULIB_REVISION"; then
           if git clone -h 2>&1 | grep -- --depth > /dev/null; then
             shallow='--depth 2'
           fi
-          git clone $shallow ${GNULIB_URL:-$default_gnulib_url} "$gnulib_path" \
+          git clone $shallow "$gnulib_url" "$gnulib_path"\
             || cleanup_gnulib
         else
           if git fetch -h 2>&1 | grep -- --depth > /dev/null; then
@@ -567,12 +568,12 @@ prepare_GNULIB_SRCDIR ()
           # is without fetching all commits. So fall back to fetching all
           # commits.
           git -C "$gnulib_path" init
-          git -C "$gnulib_path" remote add origin ${GNULIB_URL:-$default_gnulib_url}
+          git -C "$gnulib_path" remote add origin "$gnulib_url"
           git -C "$gnulib_path" fetch $shallow origin "$GNULIB_REVISION" \
             || git -C "$gnulib_path" fetch origin \
             || cleanup_gnulib
           git -C "$gnulib_path" reset --hard FETCH_HEAD
-          (cd "$gnulib_path" && git checkout "$GNULIB_REVISION") || cleanup_gnulib
+          (cd "$gnulib_path" && git checkout "$GNULIB_REVISION")||cleanup_gnulib
         fi
         trap - HUP INT PIPE TERM
       else
index f7905eb208256f59b25e489c0e7243dc6f1db537..87f804eb16c9ed0d516a26f16a8d21020f828edd 100644 (file)
@@ -491,7 +491,7 @@ prepare_GNULIB_SRCDIR ()
       if test -n "$GNULIB_REFDIR" && test -d "$GNULIB_REFDIR"/.git; then
         # Use GNULIB_REFDIR as a reference.
         echo "$0: getting gnulib files..."
-        git submodule update --init --reference "$GNULIB_REFDIR" "$gnulib_path" \
+        git submodule update --init --reference "$GNULIB_REFDIR" "$gnulib_path"\
           || exit $?
       else
         # GNULIB_REFDIR is not set or not usable. Ignore it.
@@ -509,12 +509,13 @@ prepare_GNULIB_SRCDIR ()
         # The subdirectory 'gnulib' does not yet exist. Clone into it.
         echo "$0: getting gnulib files..."
         trap cleanup_gnulib HUP INT PIPE TERM
+        gnulib_url=${GNULIB_URL:-$default_gnulib_url}
         shallow=
         if test -z "$GNULIB_REVISION"; then
           if git clone -h 2>&1 | grep -- --depth > /dev/null; then
             shallow='--depth 2'
           fi
-          git clone $shallow ${GNULIB_URL:-$default_gnulib_url} "$gnulib_path" \
+          git clone $shallow "$gnulib_url" "$gnulib_path"\
             || cleanup_gnulib
         else
           if git fetch -h 2>&1 | grep -- --depth > /dev/null; then
@@ -530,12 +531,12 @@ prepare_GNULIB_SRCDIR ()
           # is without fetching all commits. So fall back to fetching all
           # commits.
           git -C "$gnulib_path" init
-          git -C "$gnulib_path" remote add origin ${GNULIB_URL:-$default_gnulib_url}
+          git -C "$gnulib_path" remote add origin "$gnulib_url"
           git -C "$gnulib_path" fetch $shallow origin "$GNULIB_REVISION" \
             || git -C "$gnulib_path" fetch origin \
             || cleanup_gnulib
           git -C "$gnulib_path" reset --hard FETCH_HEAD
-          (cd "$gnulib_path" && git checkout "$GNULIB_REVISION") || cleanup_gnulib
+          (cd "$gnulib_path" && git checkout "$GNULIB_REVISION")||cleanup_gnulib
         fi
         trap - HUP INT PIPE TERM
       else