From: Colin Watson Date: Sun, 27 May 2018 20:13:41 +0000 (+0200) Subject: bootstrap: document source fetching in --help X-Git-Tag: v1.0~5577 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=90f289f249a266b1afb9c63e182f5d979d17df5f;p=gnulib.git bootstrap: document source fetching in --help There are many possibilities for how Gnulib sources are fetched, and they're rather hard to figure out without reading the code. * build-aux/bootstrap (usage): Document how Gnulib sources are fetched. --- diff --git a/ChangeLog b/ChangeLog index 26d6414e32..b23b109193 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-05-27 Colin Watson + + bootstrap: document source fetching in --help + * build-aux/bootstrap (usage): Document how Gnulib sources are fetched. + 2018-04-09 Colin Watson bootstrap: allow non-submodule control of gnulib diff --git a/build-aux/bootstrap b/build-aux/bootstrap index 747946abdb..002edf68db 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -47,6 +47,8 @@ PERL="${PERL-perl}" me=$0 +default_gnulib_url=git://git.sv.gnu.org/gnulib + usage() { cat <&1 | grep -- --depth > /dev/null && shallow='--depth 2' fi - git clone $shallow ${GNULIB_URL:-git://git.sv.gnu.org/gnulib} \ - "$gnulib_path" || cleanup_gnulib + git clone $shallow ${GNULIB_URL:-$default_gnulib_url} "$gnulib_path" \ + || cleanup_gnulib trap - 1 2 13 15 fi