ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.06.tar.gz
[xscreensaver] / po / update.sh
1 #!/bin/sh
2
3 # syncs the .po files with the version in GNOME CVS.
4 # The URL below is updated every ~4 hours.
5
6 url="http://developer.gnome.org/projects/gtp/status/gnome-2.0-extras/po/xscreensaver.HEAD."
7
8 for f in *.po
9 do
10   f2="$f.tmp"
11   rm -f "$f2"
12   echo -n "$f ... "
13   wget -q -O"$f2" "$url$f"
14   if [ ! -s "$f2" ]; then
15     echo "not found."
16   elif ( cmp -s "$f" "$f2" ); then
17     echo "unchanged."
18   else
19     cat "$f2" > "$f"
20     echo "updated."
21   fi
22   rm -f "$f2"
23 done
24 exit 0