bug-gnulib
[Top][All Lists]
Advanced

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

Re: bootstrap update from coreutils


From: Bruno Haible
Subject: Re: bootstrap update from coreutils
Date: Sun, 9 Sep 2007 01:07:16 +0200
User-agent: KMail/1.5.4

Jim Meyering wrote:
> Remember the context:
> Anyone using developer tools like autoconf, automake, cvs, gperf, etc.,
> is very likely also to have rsync installed.

If you think so... rsync saves bandwidth, therefore I have no problem using
it, as long as 'wget' is available as a fallback.


2007-09-08  Bruno Haible  <address@hidden>

        * gnulib-tool (func_import): Prefer rsync over wget when available,
        for fetching the PO files.

*** gnulib-tool 26 Aug 2007 10:36:54 -0000      1.254
--- gnulib-tool 8 Sep 2007 23:03:50 -0000
***************
*** 2497,2506 ****
      fi
      # Fetch PO files.
      TP_URL="http://translationproject.org/latest/";
      if $doit; then
        echo "Fetching gnulib PO files from $TP_URL"
        (cd "$destdir"/$pobase \
!        && wget --quiet -r -l1 -nd -np -A.po "${TP_URL}gnulib"
        )
      else
        echo "Fetch gnulib PO files from $TP_URL"
--- 2497,2514 ----
      fi
      # Fetch PO files.
      TP_URL="http://translationproject.org/latest/";
+     TP_RSYNC_URI="translationproject.org::tp/latest/"
      if $doit; then
        echo "Fetching gnulib PO files from $TP_URL"
        (cd "$destdir"/$pobase \
!        && { # Prefer rsync over wget if it is available, since it consumes
!             # less network bandwidth, due to compression.
!             if type rsync 2>/dev/null | grep / > /dev/null; then
!               rsync -Lrtz "${TP_RSYNC_URI}gnulib/" .
!             else
!               wget --quiet -r -l1 -nd -np -A.po "${TP_URL}gnulib"
!             fi
!           }
        )
      else
        echo "Fetch gnulib PO files from $TP_URL"





reply via email to

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