bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] bug in bootstrap


From: Eric Blake
Subject: Re: [Bug-tar] bug in bootstrap
Date: Thu, 03 Nov 2005 23:19:10 +0000

> The nice addition of parsing ./.bootstrap during bootstrap to provide
> canned command-line arguments has a slight flaw; patch below.

Another bug.  wget 1.10 and above no longer recognize "-C off",
it is now spelled --no-cache.  This breaks update_po on systems
with newer wget (such as cygwin).

2005-11-03  Eric Blake  <address@hidden>

        * bootstrap (update_po): Accomodate wget 1.10.

Index: bootstrap
===================================================================
RCS file: /cvsroot/tar/tar/bootstrap,v
retrieving revision 1.35
diff -u -b -r1.35 bootstrap
--- bootstrap   28 Oct 2005 09:29:16 -0000      1.35
+++ bootstrap   3 Nov 2005 23:17:08 -0000
@@ -65,18 +65,22 @@
 }
 
 update_po() {
+  case `wget --help` in
+    *no-cache*) no_cache='--no-cache' ;;
+    *)          no_cache='-C off' ;;
+  esac
   if [ $# = 1 ]; then
     case $1 in
     *.po)  POFILE=$1;;
     *)     POFILE=${1}.po;;
     esac
     echo "$0: getting translation for $1..."
-    wget -r -C off $TP_URL/$POFILE
+    wget -r $no_cache $TP_URL/$POFILE
   else
     echo "$0: getting translations into po..."
     (cd po &&
      rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` &&
-      wget -nv -nd -r -l 1 -A .po -C off $TP_URL &&
+      wget -nv -nd -r -l 1 -A .po $no_cache $TP_URL &&
       rm -f index.html index.html.[0-9]*
       ls *.po | sed 's/\.po$//' >LINGUAS
     ) || exit

--
Eric Blake






reply via email to

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