File: rules

package info (click to toggle)
mintstick 1.6.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,516 kB
  • sloc: python: 1,034; sh: 46; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

%:
	dh $@

execute_after_dh_auto_install: buildmo

# https://github.com/linuxmint/mint-translations/blob/master/Makefile
PKGNAME = mintstick
MO_LOCALE_INSTALLDIR = $(CURDIR)/debian/$(PKGNAME)/usr/share/locale/
buildmo:
	for pofile in $(CURDIR)/debian/translation/$(PKGNAME)/*.po ; do \
	    lang="$$(echo $$pofile | sed 's/\.po$$//' | sed 's/.*\-//')"; \
	    mkdir -p $(MO_LOCALE_INSTALLDIR)/$$lang/LC_MESSAGES/ ; \
	    msgfmt -o $(MO_LOCALE_INSTALLDIR)/$$lang/LC_MESSAGES/$(PKGNAME).mo $$pofile ; \
	done