The following commit has been merged in the master branch:
commit 9a4379be26e6716f8956fe4ee0c1a22f5c70a1aa
Author: Ansgar Burchardt <[email protected]>
Date: Sun Oct 18 15:00:22 2009 +0900
Add update-translations target
Add update-translations target to debian/rules that updates the
translations in debian/translations.
Signed-off-by: Ansgar Burchardt <[email protected]>
diff --git a/debian/rules b/debian/rules
index 27fb177..e01a9d6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -73,3 +73,16 @@ get-orig-source:
svn export --username anon --password "" -r $(SVNREV) $(SVNROOT)/trunk
simutrans-$(VERSION)
tar c simutrans-$(VERSION) | gzip -9 >simutrans_$(VERSION).orig.tar.gz
$(RM) -r simutrans-$(VERSION)
+
+# These languages will be excluded
+BROKEN_LANG = be ce cn gr id no tr
+
+update-translations:
+ dh_testdir
+ wget --post-data "version=0&choice=all&submit=Export!" --delete-after
http://simutrans-germany.com/translator/script/wrap.php
+ wget -N
http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip
+ unzip -o -d debian/translations language_pack-Base+texts.zip "*.tab"
+ $(RM) language_pack-Base+texts.zip
+ for lang in $(BROKEN_LANG) ; do \
+ $(RM) debian/translations/$$lang.tab ; \
+ done
--
transportation simulator
_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits