bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bootstrap tweak


From: Jim Meyering
Subject: bootstrap tweak
Date: Fri, 10 Oct 2008 08:52:37 +0200

Pádraig noticed a Debian Etch system with git-1.4.4, which doesn't
support git's --depth=N option, and bootstrap failed there.
Now, it uses --depth only if "git clone --help" mentions it.

[I nearly removed the optimization altogether,
but since it halves the download size from 15M,
I made it slightly more portable instead ]

I've just pushed this:

>From 19c0b3920532a8044490a03c6400c856520c3abb Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 10 Oct 2008 08:34:05 +0200
Subject: [PATCH] bootstrap: use git's --depth=N option only if it's supported
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

* build-aux/bootstrap: Work with git-1.4.4.4, which does not
recognize the --depth option.  Reported by Pádraig Brady.
---
 ChangeLog           |    6 ++++++
 build-aux/bootstrap |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 838a822..ef7e54f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-10  Jim Meyering  <address@hidden>
+
+       bootstrap: use git's --depth=N option only if it's supported
+       * build-aux/bootstrap: Work with git-1.4.4.4, which does not
+       recognize the --depth option.  Reported by Pádraig Brady.
+
 2008-10-09  Bruno Haible  <address@hidden>

        New module 'ioctl'.
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 0d76686..2087bab 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -262,7 +262,8 @@ case ${GNULIB_SRCDIR--} in

     trap cleanup_gnulib 1 2 13 15

-    git clone --depth 2 git://git.sv.gnu.org/gnulib ||
+    git clone --help|grep depth > /dev/null && shallow='--depth 2' || shallow=
+    git clone $shallow git://git.sv.gnu.org/gnulib ||
       cleanup_gnulib

     trap - 1 2 13 15
--
1.6.0.2.307.gc427




reply via email to

[Prev in Thread] Current Thread [Next in Thread]