[Debian-l10n-commits] r1211 - /ddtp-web/db2po.sh
grisu at users.alioth.debian.org
grisu at users.alioth.debian.org
Thu Aug 14 23:59:23 UTC 2008
Author: grisu
Date: Thu Aug 14 23:59:23 2008
New Revision: 1211
URL: http://svn.debian.org/wsvn/?sc=1&rev=1211
Log:
* use cmd-line arguments
Modified:
ddtp-web/db2po.sh
Modified: ddtp-web/db2po.sh
URL: http://svn.debian.org/wsvn/ddtp-web/db2po.sh?rev=1211&op=diff
==============================================================================
--- ddtp-web/db2po.sh (original)
+++ ddtp-web/db2po.sh Thu Aug 14 23:59:23 2008
@@ -5,10 +5,23 @@
rm -rf pos
mkdir -p pos
-#for distribution in etch sid
-for distribution in sid
+if [ "x$1" = "x" ]
+then
+ LANGS=`psql ddtp -q -A -t -c "select distinct language from translation_tb"`
+else
+ LANGS=$1
+fi
+
+if [ "x$2" = "x" ]
+then
+ DISTRIBUTIONS=lenny etch sid
+else
+ DISTRIBUTIONS=$2
+fi
+
+for distribution in $DISTRIBUTIONS
do
- for lang in cs da de eo es fi fr go hu it ja km_KH ko nl pl pl_PL pt_BR pt_PT ru sk sv uk zh_CN zh_TW
+ for lang in $LANGS
do
./db2po.pl $distribution $lang
echo `date`: create the $lang po for $distribution
More information about the Debian-l10n-commits
mailing list