diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-07-21 08:27:18 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-07-21 08:27:18 +0000 |
commit | e89bad1a6594fffde8578dd4dd6fecb4c78d1056 (patch) | |
tree | 8c25f707e0482b9bbf98c8a84523876effef75ff | |
parent | 8ab0260b019cf6cdbfb8069ed168c53cedd55120 (diff) | |
download | cflow-e89bad1a6594fffde8578dd4dd6fecb4c78d1056.tar.gz cflow-e89bad1a6594fffde8578dd4dd6fecb4c78d1056.tar.bz2 |
(update_po): Fix updating a single translation.
-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 | |||
58 | ./bootstrap --cvs-auth=ext --cvs-user=anoncvs | 58 | ./bootstrap --cvs-auth=ext --cvs-user=anoncvs |
59 | 59 | ||
60 | EOF | 60 | EOF |
61 | } | 61 | } |
62 | 62 | ||
63 | update_po() { | 63 | update_po() { |
64 | if [ $# = 1 ]; then | 64 | if [ $# = 1 ]; then |
65 | case $1 in | 65 | case $1 in |
66 | *.po) POFILE=$1;; | 66 | *.po) POFILE=$1;; |
67 | *) POFILE=${1}.po;; | 67 | *) POFILE=${1}.po;; |
68 | esac | 68 | esac |
69 | echo "$0: getting translation for $1..." | 69 | echo "$0: getting translation for $1..." |
70 | wget -r -C off $TP_URL/$POFILE | 70 | (cd po; |
71 | wget -r --cache=off -O $POFILE $TP_URL/$POFILE || exit | ||
72 | LANG=`expr $POFILE : '\(.*\)\.po'` | ||
73 | if ! grep -q $LANG LINGUAS; then | ||
74 | mv LINGUAS LINGUAS.$$ | ||
75 | (echo $LANG; cat LINGUAS.$$) | sort > LINGUAS | ||
76 | fi) | ||
71 | else | 77 | else |
72 | echo "$0: getting translations into po..." | 78 | echo "$0: getting translations into po..." |
73 | (cd po && | 79 | (cd po && |
74 | rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && | 80 | rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && |
75 | wget -nv -nd -r -l 1 -A .po -C off $TP_URL && | 81 | wget -nv -nd -r -l 1 -A .po -C off $TP_URL && |
76 | rm -f index.html index.html.[0-9]* | 82 | rm -f index.html index.html.[0-9]* |
77 | ls *.po | sed 's/\.po$//' >LINGUAS | 83 | ls *.po | sed 's/\.po$//' >LINGUAS |
78 | ) || exit | 84 | ) || exit |
79 | fi | 85 | fi |
80 | } | 86 | } |
81 | 87 | ||
82 | # Read configuration file | 88 | # Read configuration file |