[SCM] transportation simulator branch, master, updated. debian/102.2.2.ds1-1-8-gfd00992
Ansgar Burchardt
ansgar at debian.org
Wed Feb 16 01:06:21 UTC 2011
The following commit has been merged in the master branch:
commit 580f7a0fb5f03fcd3a2a830370620f09262aa09b
Author: Ansgar Burchardt <ansgar at debian.org>
Date: Tue Feb 15 12:13:09 2011 +0100
Remove broken languages only at build time
Removing broken languages at build time instead of right when
downloading them makes it easier to adapt the list of excluded
languages.
diff --git a/debian/rules b/debian/rules
index c84b2bb..0c86ec9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,9 @@ clean-patched:
dh_clean
+# These languages will be excluded
+BROKEN_LANG = ce cn id tr
+
install: build
dh install --before dh_installchangelogs
dh_installchangelogs simutrans/history.txt
@@ -51,6 +54,9 @@ install: build
install -m 644 simutrans/music/*.tab $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/music
install -m 644 simutrans/music/*.mid $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/music
install -m 644 debian/translations/*.tab $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/text
+ for lang in $(BROKEN_LANG); do \
+ $(RM) $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/text/$$lang.tab ; \
+ done
for lang in cz de dk en es fr hu it ja nl pl pt ro ru sk zh ; do \
install -m 644 simutrans/text/$$lang/*.txt $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/text/$$lang ; \
done
@@ -81,15 +87,9 @@ get-orig-source:
tar c simutrans-$(VERSION) | gzip -9 >simutrans_$(VERSION).orig.tar.gz
$(RM) -r simutrans-$(VERSION)
-# These languages will be excluded
-BROKEN_LANG = ce cn id tr
-
update-translations:
dh_testdir
wget --post-data "version=0&choice=all&submit=Export!" --delete-after "http://simutrans-germany.com/translator/script/main.php?page=wrap"
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
More information about the Pkg-games-commits
mailing list