| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ |
| 8 |
|
| 9 |
override_dh_auto_configure: |
| 10 |
# Build.PL regenerates the (unused) Maekfile.PL |
| 11 |
[ ! -f $(CURDIR)/Makefile.PL ] || cp $(CURDIR)/Makefile.PL $(CURDIR)/Makefile.PL.sav |
| 12 |
dh_auto_configure |
| 13 |
[ ! -f $(CURDIR)/Makefile.PL.sav ] || mv $(CURDIR)/Makefile.PL.sav $(CURDIR)/Makefile.PL |
| 14 |
|
| 15 |
override_dh_installexamples: |
| 16 |
dh_installexamples |
| 17 |
sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |