File: rules

package info (click to toggle)
gnome-shell-timer 0.0.20120615%2Bgitbde3fd2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 188 kB
  • sloc: python: 198; xml: 57; sh: 50; makefile: 17
file content (23 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

%:
	dh $@ --with python2

override_dh_auto_clean:
	rm -f po/*/gnome-shell-timer.mo

override_dh_auto_build:
	for po in po/*/gnome-shell-timer.po; do \
	    msgfmt -cv -o $${po%.po}.mo $$po; \
	done 

override_dh_auto_install:
	for mo in po/*/gnome-shell-timer.mo; do \
	    lang=$$(basename $$(dirname $$mo)); \
	    mkdir -p debian/gnome-shell-timer/usr/share/locale/$$lang/LC_MESSAGES; \
	    cp $$mo debian/gnome-shell-timer/usr/share/locale/$$lang/LC_MESSAGES/; \
	done
	mkdir -p debian/gnome-shell-timer/usr/bin/
	cp gnome-shell-timer-config.py debian/gnome-shell-timer/usr/bin/gnome-shell-timer-config
	sed -i -e '1 s/python2/python/' debian/gnome-shell-timer/usr/bin/gnome-shell-timer-config