File: rules

package info (click to toggle)
libjs-spectre 0.5.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 4,060 kB
  • sloc: javascript: 54; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DH_VERBOSE = 1

%:
	dh $@

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md

override_dh_installdocs:
	dh_installdocs
	find ./debian -name '*.html' \
		-exec perl -0777 -i -pe 's/<scrip.*?<\/script>//gs' {} \;
	find ./debian -name '*.html' \
		-exec perl -0777 -i -pe 's/<iframe.*?<\/iframe>//gs' {} \;
	find ./debian -name '*.html' \
		-exec perl -0777 -i -pe 's/<ins class="adsbygoogle".*?<\/ins>//gs' {} \;