mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
bootstrap: ensure gnulib_path is not empty.
This commit is contained in:
parent
e36538b53a
commit
294f2e1f6b
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-14 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* bootstrap (gnulib_path): Default to "gnulib" if it doesn't have a
|
||||||
|
value. Redirect "git clone" stderr to stdout.
|
||||||
|
|
||||||
2010-05-09 Giuseppe Scrivano <gscrivano@gnu.org>
|
2010-05-09 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
* build-aux/bzr-version-gen: New file.
|
* build-aux/bzr-version-gen: New file.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Print a version string.
|
# Print a version string.
|
||||||
scriptversion=2010-04-30.16; # UTC
|
scriptversion=2010-05-14.09; # UTC
|
||||||
|
|
||||||
# Bootstrap this package from checked-out sources.
|
# Bootstrap this package from checked-out sources.
|
||||||
|
|
||||||
@ -409,6 +409,7 @@ git_modules_config () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gnulib_path=`git_modules_config submodule.gnulib.path`
|
gnulib_path=`git_modules_config submodule.gnulib.path`
|
||||||
|
test -n "$gnulib_path" || gnulib_path="gnulib"
|
||||||
|
|
||||||
# Get gnulib files.
|
# Get gnulib files.
|
||||||
|
|
||||||
@ -424,7 +425,8 @@ case ${GNULIB_SRCDIR--} in
|
|||||||
|
|
||||||
trap cleanup_gnulib 1 2 13 15
|
trap cleanup_gnulib 1 2 13 15
|
||||||
|
|
||||||
git clone -h|grep -- --depth > /dev/null && shallow='--depth 2' || shallow=
|
git clone 2>&1 -h|grep -- --depth > /dev/null \
|
||||||
|
&& shallow='--depth 2'|| shallow=
|
||||||
git clone $shallow git://git.sv.gnu.org/gnulib "$gnulib_path" ||
|
git clone $shallow git://git.sv.gnu.org/gnulib "$gnulib_path" ||
|
||||||
cleanup_gnulib
|
cleanup_gnulib
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user