diff options
-rwxr-xr-x | build-aux/bootstrap | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap index 8c10572..d4f223d 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -58,25 +58,31 @@ to ./bootstrap --cvs-auth=ext --cvs-user=anoncvs EOF } update_po() { if [ $# = 1 ]; then case $1 in *.po) POFILE=$1;; *) POFILE=${1}.po;; esac echo "$0: getting translation for $1..." - wget -r -C off $TP_URL/$POFILE + (cd po; + wget -r --cache=off -O $POFILE $TP_URL/$POFILE || exit + LANG=`expr $POFILE : '\(.*\)\.po'` + if ! grep -q $LANG LINGUAS; then + mv LINGUAS LINGUAS.$$ + (echo $LANG; cat LINGUAS.$$) | sort > LINGUAS + fi) else echo "$0: getting translations into po..." (cd po && rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && wget -nv -nd -r -l 1 -A .po -C off $TP_URL && rm -f index.html index.html.[0-9]* ls *.po | sed 's/\.po$//' >LINGUAS ) || exit fi } # Read configuration file |