File: rules

package info (click to toggle)
libpandoc-elements-perl 0.38-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 508 kB
  • sloc: perl: 1,596; makefile: 19; sh: 4
file content (17 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = debian/$(PACKAGE)

%:
	dh $@

override_dh_install:
	dh_install
	find debian/*/usr/share/man/man3 -type f -empty -delete
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/multifilter

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|'