~ubuntu-branches/ubuntu/karmic/openbve-data/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Paul Sladen
  • Date: 2009-02-22 23:03:42 UTC
  • Revision ID: james.westby@ubuntu.com-20090222230342-t32gd71tmoiohdip
Tags: 0.9.5.5+dfsg-0ubuntu3
Rename Swiss-German and zh_* from ISO 639 to ISO 3166
to allow better auto loading of translations from LANG/CultureInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
export DH_VERBOSE=15
3
3
TARGET = $(CURDIR)/debian/openbve-data
 
4
DATATARGET=$(TARGET)/usr/share/games/openbve/data
 
5
LANGUAGETARGET = $(DATATARGET)/Interface
4
6
 
5
7
configure: configure-stamp
6
8
configure-stamp:
24
26
        dh_testroot
25
27
        dh_clean -k 
26
28
        dh_installdirs
27
 
        cp -rp $(CURDIR)/Interface $(CURDIR)/Controls $(CURDIR)/Graphics $(CURDIR)/Compatibility $(TARGET)/usr/share/games/openbve/data/
 
29
        cp -rp $(CURDIR)/Interface $(CURDIR)/Controls $(CURDIR)/Graphics $(CURDIR)/Compatibility $(DATATARGET)/
28
30
        (cd $(TARGET)/usr/share/pixmaps/ && ln -s ../../lib/openbve/Interface/logo.png openbve.128.png)
29
31
        # Symlink in our data to where the .exe is going to look for it (it searches current_exepath/Foo/)
30
32
        for datadir in Compatibility Controls Graphics Interface ; do \
31
33
          (cd $(TARGET)/usr/lib/openbve/ && ln -s ../../share/games/openbve/data/$$datadir ); \
32
34
        done
33
35
 
 
36
        # Rename languages from ISO 639 to ISO 3166 for automatic selection from locale
 
37
        (cd $(LANGUAGETARGET) && mv language_gsw.cfg   language_de-CH.cfg && mv flag_gsw.png   flag_de-CH.png)
 
38
        (cd $(LANGUAGETARGET) && mv flag_zh_cn.png flag_zh-CN.png)
 
39
        (cd $(LANGUAGETARGET) && mv flag_zh_sg.png flag_zh-SG.png)
 
40
        (cd $(LANGUAGETARGET) && mv language_zh_hk.cfg language_zh-HK.cfg && mv flag_zh_hk.png flag_zh-HK.png)
 
41
        (cd $(LANGUAGETARGET) && mv language_zh_tw.cfg language_zh-TW.cfg && mv flag_zh_tw.png flag_zh-TW.png)
 
42
 
34
43
binary-arch:
35
44
        # Do nothing
36
45