X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=bootstrap;h=1ffaaa943017ad87a3be8f571da29420e4afe446;hp=a9a778a85e1aee2bc89155dbb1544da69cc11178;hb=2f6aa1d7417df1dfc58597777686fbd77179b9fd;hpb=9c23efbf57cbfe4ba0fbe833c6956bf567b5b00e diff --git a/bootstrap b/bootstrap index a9a778a8..1ffaaa94 100755 --- a/bootstrap +++ b/bootstrap @@ -1,10 +1,11 @@ #! /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. -# Copyright (C) 2003-2010 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +# Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -409,6 +410,7 @@ git_modules_config () { } gnulib_path=`git_modules_config submodule.gnulib.path` +test -n "$gnulib_path" || gnulib_path="gnulib" # Get gnulib files. @@ -424,7 +426,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