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  <[EMAIL PROTECTED]>

        * 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