ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.06.tar.gz
[xscreensaver] / po / update.sh
diff --git a/po/update.sh b/po/update.sh
new file mode 100755 (executable)
index 0000000..5bfb6fa
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# syncs the .po files with the version in GNOME CVS.
+# The URL below is updated every ~4 hours.
+
+url="http://developer.gnome.org/projects/gtp/status/gnome-2.0-extras/po/xscreensaver.HEAD."
+
+for f in *.po
+do
+  f2="$f.tmp"
+  rm -f "$f2"
+  echo -n "$f ... "
+  wget -q -O"$f2" "$url$f"
+  if [ ! -s "$f2" ]; then
+    echo "not found."
+  elif ( cmp -s "$f" "$f2" ); then
+    echo "unchanged."
+  else
+    cat "$f2" > "$f"
+    echo "updated."
+  fi
+  rm -f "$f2"
+done
+exit 0