]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve transifex sync script a bit.
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 30 Dec 2014 11:54:59 +0000 (12:54 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 30 Dec 2014 11:54:59 +0000 (12:54 +0100)
tx.sh

diff --git a/tx.sh b/tx.sh
index 992ed3f502a4502adbcb536296139fa817b6f6db..47c388f6813968d161c84134042e271c7b5c6ad7 100644 (file)
--- a/tx.sh
+++ b/tx.sh
@@ -7,6 +7,9 @@ mergebase=`git log --pretty=oneline -1 .tx/merge-base | cut -d ' ' -f 1`
 
 set -e
 
+# Update the .pot.
+sh check-translations.sh pot
+
 # First upload our current .pot.
 mkdir -p translations/xonotic.commonpot/
 cp common.pot translations/xonotic.commonpot/en..po
@@ -63,3 +66,11 @@ for f in translations/xonotic.commonpot/*..po; do
 done
 tx push -t --skip
 date > .tx/merge-base
+
+# Build new languages list.
+sh check-translations.sh txt > languages.txt.new
+mv languages.txt.new languages.txt
+
+# Report stats.
+git diff --stat
+git diff --color-words languages.txt