debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | PACKAGE = $(shell dh_listpackages) |
| 4 | TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 | EXAMPLES= $(TMP)/usr/share/doc/$(PACKAGE)/examples |
| 6 | |
| 7 | %: |
| 8 | dh $@ |
| 9 | |
| 10 | override_dh_installexamples: |
| 11 | dh_installexamples |
| 12 | sed -i -e'1 s,^#!/usr/local/bin/perl\b,#!/usr/bin/perl,' \ |
| 13 | $$(find $(EXAMPLES) -type f) |
| 14 | |
| 15 | override_dh_fixperms: |
| 16 | dh_fixperms |
| 17 | chmod -x \ |
| 18 | $$(find $(EXAMPLES) -type f -not -name "*.pl") |