File: rules

package info (click to toggle)
gnome-shell-extension-trash 0.2.0-git20200326.3425fcf1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 148 kB
  • sloc: javascript: 165; makefile: 13
file content (15 lines) | stat: -rwxr-xr-x 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	# We currently skip portugues translations, it seems broken and upstream
	# doesn't currently build it either.
	for POFILE in po/de.po po/fr.po; do \
	        MOLANG=$$(echo $$POFILE | sed -e "s/po\///g" | sed -e "s/\.po//g"); \
		MOFILE="locale/$$MOLANG/LC_MESSAGES/gnome-shell-trash-extension.mo"; \
		msgfmt -cv -o $$MOFILE $$POFILE; \
	done
	dh_auto_build