udapted vi.po
[rhythmbox.git] / widgets / update-from-egg.sh
blob19d31bd2fada3a30b1eebd63e9b0828b42a2ac3a
1 #!/bin/sh
2 # arch-tag: Script to update copied widget files from libegg
4 function die() {
5 echo $*
6 exit 1
9 if test -z "$EGGDIR"; then
10 echo "Must set EGGDIR"
11 exit 1
14 if test -z "$EGGFILES"; then
15 echo "Must set EGGFILES"
16 exit 1
19 for FILE in $EGGFILES; do
20 if cmp -s $EGGDIR/$FILE $FILE; then
21 echo "File $FILE is unchanged"
22 else
23 cp $EGGDIR/$FILE $FILE || die "Could not move $EGGDIR/$FILE to $FILE"
24 echo "Updated $FILE"
26 done