~stefan-schwarzburg/qreator/touch-reorganized-colortheme

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: David Planella
  • Date: 2013-05-20 12:56:54 UTC
  • Revision ID: david.planella@ubuntu.com-20130520125654-0jp9f7ric3wvvl5l
Added packaging and desktop file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
%:
 
8
        dh $@
 
9
 
 
10
override_dh_install:
 
11
        dh_install --fail-missing
 
12
        appname=qreator-touch; \
 
13
        for pofile in po/*.po; do \
 
14
                pofilename="$${pofile##*/}"; \
 
15
                langcode="$${pofilename%.*}"; \
 
16
                localedir="debian/$$appname/usr/share/locale/$$langcode/LC_MESSAGES"; \
 
17
                mkdir -p $$localedir; \
 
18
                mofile="$$localedir/$$appname.mo"; \
 
19
                msgfmt -o $$mofile $$pofile; \
 
20
        done