summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-04-27 23:08:49 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-04-27 23:09:13 +0200
commitb610c25e84e5923c3f454bb89aa6819e115ecb2e (patch)
treeb30a715333bf857082ea5ea1424241314d35740a /bootstrap
parentbaaa92c25d2ef9ea8256397a104baa2fba2e6ce5 (diff)
downloadpatch-b610c25e84e5923c3f454bb89aa6819e115ecb2e.tar.gz
Update bootstrap script
* bootstrap: Update from gnulib.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 365a3d9..9686baa 100755
--- a/bootstrap
+++ b/bootstrap
@@ -424,7 +424,7 @@ case ${GNULIB_SRCDIR--} in
trap cleanup_gnulib 1 2 13 15
- git clone --help|grep depth > /dev/null && shallow='--depth 2' || shallow=
+ git clone -h|grep -- --depth > /dev/null && shallow='--depth 2' || shallow=
git clone $shallow git://git.sv.gnu.org/gnulib "$gnulib_path" ||
cleanup_gnulib
@@ -437,7 +437,7 @@ case ${GNULIB_SRCDIR--} in
if test -d "$GNULIB_SRCDIR"/.git && \
git_modules_config submodule.gnulib.url >/dev/null; then
echo "$0: getting gnulib files..."
- if git submodule --help|grep reference > /dev/null; then
+ if git submodule -h|grep -- --reference > /dev/null; then
# Prefer the one-liner available in git 1.6.4 or newer.
git submodule update --init --reference "$GNULIB_SRCDIR" \
"$gnulib_path" || exit $?