#!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_test: NO_NETWORK=1 dh_auto_test # Historically this package installed 'shorten' # as an example rather than a tool. # I see no compelling reason to change that # but it requires this override. override_dh_installexamples: dh_installexamples bin/shorten $(RM) -rv $(TMP)/usr/bin $(TMP)/usr/share/man/man1 sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*