~rpadovani/reminders-app/translationsUpdate

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: David Planella
  • Date: 2013-11-20 22:46:30 UTC
  • mfrom: (2.2.7 add-debian-click-packaging)
  • Revision ID: david.planella@ubuntu.com-20131120224630-7f5i0xxcktyqgx6b
Merged Debian packaging

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=com.ubuntu.reminders-app; \
 
13
        debname=reminders-app; \
 
14
        for pofile in $(shell find ./po -name "*.po"); do \
 
15
                pofilename="$${pofile##*/}"; \
 
16
                langcode="$${pofilename%.*}"; \
 
17
                localedir="debian/$$debname/usr/share/locale/$$langcode/LC_MESSAGES"; \
 
18
                mkdir -p $$localedir; \
 
19
                mofile="$$localedir/$$appname.mo"; \
 
20
                msgfmt -o $$mofile $$pofile; \
 
21
        done