1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/make -f
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
MAN3 = $(TMP)/usr/share/man/man3
%:
dh $@
override_dh_install:
dh_install
sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/perl5/PDF/Table.pm
override_dh_installexamples:
dh_installexamples
find $(TMP)/usr/share/doc/$(PACKAGE)/examples -type f -print0 | \
xargs -r0 sed -i -e '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|'
execute_before_dh_installman:
# Documentation reorganisation seems to have lead to manpages mismatch.
# PDF::Table.3pm is mostly empty at this point. The resulting content
# of PDF::Table::Table.3pm should be the one of PDF::Table.3pm.
mv -v $(MAN3)/PDF::Table::Table.3pm $(MAN3)/PDF::Table.3pm
|