~pkunal-parmar/ubuntu-calendar-app/Minor-Performance

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Kunal Parmar
  • Date: 2013-12-14 02:44:09 UTC
  • mto: This revision was merged to the branch mainline in revision 195.
  • Revision ID: pkunal.parmar@gmail.com-20131214024409-oa7r1rtx9nbah4wm
PathView changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
%:
8
8
        dh $@
 
9
 
 
10
override_dh_auto_test:
 
11
        QT_QPA_PLATFORM=minimal qmltestrunner -input tests/unittests/
 
12
 
 
13
override_dh_install:
 
14
        dh_install --fail-missing
 
15
        appname=com.ubuntu.calendar; \
 
16
        for pofile in $(shell find ./po -name "*.po"); do \
 
17
                pofilename="$${pofile##*/}"; \
 
18
                langcode="$${pofilename%.*}"; \
 
19
                localedir="usr/share/locale/$$langcode/LC_MESSAGES"; \
 
20
                mofile="$$appname.mo"; \
 
21
                msgfmt -o $$mofile $$pofile; \
 
22
                dh_install $$mofile $$localedir; \
 
23
                rm -f $$mofile; \
 
24
        done