]> sjero.net Git - wget/commitdiff
[svn] Improved robustness of update_po_files.sh.
authormtortonesi <devnull@localhost>
Fri, 14 Jul 2006 13:08:29 +0000 (06:08 -0700)
committermtortonesi <devnull@localhost>
Fri, 14 Jul 2006 13:08:29 +0000 (06:08 -0700)
util/update_po_files.sh

index 80b3e6f09233dabc4f015cd669aeeacd25de77e2..4ae3b8b4e5ddb0e8d0380d032bcd1098a50d05d1 100755 (executable)
@@ -1,7 +1,13 @@
 #!/bin/bash
 
-#cd po
 for i in *.po
 do 
-       wget http://www.iro.umontreal.ca/translation/maint/wget/$i -O $i
+       mv $i $i.old
+
+       wget http://www.iro.umontreal.ca/translation/maint/wget/$i
+
+       if test -f $i
+       then 
+               rm -f $i.old
+       fi
 done