File: rules

package info (click to toggle)
gvrng 4.4-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,808 kB
  • ctags: 839
  • sloc: python: 3,107; sh: 13; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2009-2011 Sergio Talens-Oliag <sto@debian.org>

%:
	dh $@

# Build architecture-independent files here.
override_dh_install:
	dh_install
	# Rebuild locale files, just in case we've added patches to them... :)
	for f in gvrng; do \
		for po in `ls po/*/$$f.po`; do \
			lang=`echo $$po | sed -e "s%po/%%;s%/$$f.po%%"`; \
			mkdir -p debian/gvrng/usr/share/locale/$$lang/LC_MESSAGES/; \
			msgfmt $$po -o debian/gvrng/usr/share/locale/$$lang/LC_MESSAGES/$$f.mo; \
		done \
	done