summaryrefslogtreecommitdiffstats
path: root/po/update.sh
blob: 5bfb6fa778c9e62349804cdeff1751f0c917d8ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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