File: rules

package info (click to toggle)
libwww-shorten-perl 3.093-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 312 kB
  • ctags: 22
  • sloc: perl: 349; makefile: 10
file content (19 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_test:
	NO_NETWORK=1 dh_auto_test

# Historically this package installed 'shorten'
# as an example rather than a tool.
# I see no compelling reason to change that
# but it requires this override.
override_dh_installexamples:
	dh_installexamples bin/shorten
	$(RM) -rv $(TMP)/usr/bin $(TMP)/usr/share/man/man1
	sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*