X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=bootstrap;h=b74bc0b76d715a2b9eb9a96fbd8a92212f09fc73;hp=a9a778a85e1aee2bc89155dbb1544da69cc11178;hb=6230b73df0c2a47a175f25e34ef7bfe009ddf1f9;hpb=9c23efbf57cbfe4ba0fbe833c6956bf567b5b00e diff --git a/bootstrap b/bootstrap index a9a778a8..b74bc0b7 100755 --- a/bootstrap +++ b/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh # Print a version string. -scriptversion=2010-04-30.16; # UTC +scriptversion=2010-05-14.09; # UTC # Bootstrap this package from checked-out sources. @@ -409,6 +409,7 @@ git_modules_config () { } gnulib_path=`git_modules_config submodule.gnulib.path` +test -n "$gnulib_path" || gnulib_path="gnulib" # Get gnulib files. @@ -424,7 +425,8 @@ case ${GNULIB_SRCDIR--} in 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" || cleanup_gnulib