57 |
|
|
58 |
TP_URL="http://www.iro.umontreal.ca/translation/maint/m4/" |
TP_URL="http://www.iro.umontreal.ca/translation/maint/m4/" |
59 |
|
|
|
WGETFLAGS="--no-cache" |
|
|
case `wget $WGETFLAGS 2>&1` in |
|
|
*"unrecognized option \`--no-cache'"*) WGETFLAGS="--cache=off" ;; |
|
|
esac |
|
|
|
|
60 |
func_update_po () |
func_update_po () |
61 |
{ |
{ |
62 |
if test $# = 1; then |
if test $# = 1; then |
65 |
*) POFILE=$1.po ;; |
*) POFILE=$1.po ;; |
66 |
esac |
esac |
67 |
func_echo "getting translation for $1..." |
func_echo "getting translation for $1..." |
68 |
$WGET -r $WGETFLAGS $TP_URL/$POFILE |
$WGET -r --cache=off $TP_URL/$POFILE |
69 |
else |
else |
70 |
func_echo "getting translations into po..." |
func_echo "getting translations into po..." |
71 |
(cd po && |
(cd po && |
72 |
rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && |
rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && |
73 |
$WGET -nv -nd -r -l 1 -A .po $WGETFLAGS $TP_URL && |
$WGET -nv -nd -r -l 1 -A .po --cache=off $TP_URL && |
74 |
rm -f index.html index.html.[0-9]* |
rm -f index.html index.html.[0-9]* |
75 |
ls *.po | sed 's/\.po$//' > LINGUAS |
ls *.po | sed 's/\.po$//' > LINGUAS |
76 |
) || exit |
) || exit |