#!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_install: dh_auto_install sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/Markdown.pl mv $(TMP)/usr/bin/Markdown.pl $(TMP)/usr/bin/markdown mv $(TMP)/usr/share/man/man1/Markdown.pl.1p $(TMP)/usr/share/man/man1/markdown.1p