| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ |
| 8 |
|
| 9 |
# we want to use the system version of included modules, so |
| 10 |
# we move the t/Test away and move it back afterwards |
| 11 |
override_dh_auto_clean: |
| 12 |
dh_auto_clean |
| 13 |
[ ! -d $(CURDIR)/t/Test.save ] || mv $(CURDIR)/t/Test.save $(CURDIR)/t/Test |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
[ ! -d $(CURDIR)/t/Test ] || mv $(CURDIR)/t/Test $(CURDIR)/t/Test.save |
| 17 |
dh_auto_configure |
| 18 |
|
| 19 |
|
| 20 |
override_dh_installexamples: |
| 21 |
dh_installexamples |
| 22 |
sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |