| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | PKG:=$(shell dh_listpackages) |
| 4 | TMP:=$(CURDIR)/debian/$(PKG) |
| 5 | EXAMPLES:=$(TMP)/usr/share/doc/$(PKG)/examples |
| 6 | |
| 7 | %: |
| 8 | dh $@ |
| 9 | |
| 10 | override_dh_installexamples: |
| 11 | dh_installexamples |
| 12 | sed -i -e's|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(EXAMPLES)/*.pl |
| 13 | sed -i -e '1i #!/usr/bin/perl\n' $(EXAMPLES)/chain.pl |
| 14 | |
| 15 | override_dh_fixperms: |
| 16 | dh_fixperms |
| 17 | chmod a+x $(EXAMPLES)/*.pl |