blob: dbc832612b30c43db058f6274617704d1553521a (
plain)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/usr/bin/make -f %: dh $@ override_dh_auto_clean: python3 manage.py clean override_dh_auto_build: python3 manage.py build python3 manage.py i18n --dont-update-pot --dont-merge-po override_dh_auto_test: python3 manage.py validate --loose --legacy pkg_name=plainbox-provider-checkbox verbose_id=2013.com.canonical.certification:checkbox terse_id=$(pkg_name) override_dh_auto_install: python3 manage.py install \ --prefix=/usr --layout=unix \ --root=$(CURDIR)/debian/$(pkg_name)/ # Rename provider directory to avoid having colon in the PATH mv $(CURDIR)/debian/$(pkg_name)/usr/lib/$(verbose_id) \ $(CURDIR)/debian/$(pkg_name)/usr/lib/$(terse_id) mv $(CURDIR)/debian/$(pkg_name)/usr/share/$(verbose_id) \ $(CURDIR)/debian/$(pkg_name)/usr/share/$(terse_id) # Rename the .provider file, mind the mangling of : done by manage.py install! mv $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(subst :,.,$(verbose_id)).provider \ $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(terse_id).provider # Reflect changes in the .provider meta-data sed -i -e 's!$(verbose_id)!$(terse_id)!g' \ $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(terse_id).provider # But don't modify the name, it has to be exactly as before sed -i -e 's!name = $(terse_id)!name = $(verbose_id)!g' \ $(CURDIR)/debian/$(pkg_name)/usr/share/plainbox-providers-1/$(terse_id).provider override_dh_gencontrol: python3 manage.py packaging dh_gencontrol
|