| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
TEST_FILES=$(filter-out t/valid_xml.t,$(wildcard t/*.t)) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_test: |
| 12 |
dh_auto_test -- test_files="$(TEST_FILES)" |
| 13 |
|
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install |
| 16 |
sed -i -e '1s|#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/pod2docbook |
| 17 |
|
| 18 |
override_dh_installexamples: |
| 19 |
dh_installexamples |
| 20 |
find $(TMP)/usr/share/doc/$(PACKAGE)/examples -type f -print0 | \ |
| 21 |
xargs -r0 sed -i -e '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' |
| 22 |
$(RM) $(TMP)/usr/share/doc/$(PACKAGE)/examples/pod2docbook-docbook/.gitignore |