File: rules

package info (click to toggle)
node-istanbul 0.4.5%2Brepack10%2B~cs97.25.57-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,872 kB
  • sloc: javascript: 29,132; sh: 26; makefile: 14; xml: 1
file content (24 lines) | stat: -rwxr-xr-x 780 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_build:
	dh_auto_build --buildsystem=nodejs
	patch -p1 <debian/patches/reproducible.patch
	help2man -N -n 'istanbul command line interface' nyc/bin/nyc.js >nyc.1
	patch -p1 -R <debian/patches/reproducible.patch

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/node-istanbul/usr/share/nodejs/istanbul/lib/cli.js
	chmod +x debian/node-istanbul/usr/share/nodejs/nyc/bin/nyc.js

override_dh_installchangelogs:
# fix mix of html and text
	dh_installchangelogs CHANGELOG.md
	sed -i -e 's,</\?t[dr]>,,g' -e 's,</\?ul>,,g'  -e 's,</\?li>,,g' -e 's,</\?table>,,g' -e 's/td>//g' -e 's/[ \t]*$$//' debian/node-istanbul/usr/share/doc/node-istanbul/changelog