#!/usr/bin/make -f %: dh $@ # We don't have jslint, so override the test override_dh_auto_test: override_dh_auto_install: for PO_FILE in _po/*.po; do \ LANG=$$(basename "$$PO_FILE" .po); \ mkdir -p locale/$$LANG/LC_MESSAGES; \ msgfmt -c "$$PO_FILE" -o locale/$$LANG/LC_MESSAGES/arcmenu.mo""; \ done override_dh_gencontrol: dh_gencontrol -- \ -Vgnome:MinimumVersion=$(shell python3 -c "import json; print(min(int(x) for x in json.load(open('metadata.json', 'rt'))['shell-version']))") \ -Vgnome:MaximumVersion=$(shell python3 -c "import json; print(1+max(int(x) for x in json.load(open('metadata.json', 'rt'))['shell-version']))")