]> sjero.net Git - wget/blobdiff - util/update_po_files.sh
[svn] Improved robustness of update_po_files.sh.
[wget] / 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