#!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_install: dh_auto_install $(RM) --verbose $(TMP)/usr/bin/generate-crypted-password # delete the empty directory as well rmdir --verbose $(TMP)/usr/bin override_dh_installexamples: dh_installexamples sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/generate-crypted-password