File: rules

package info (click to toggle)
node-esutils 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 208 kB
  • sloc: javascript: 385; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

override_dh_auto_build:
	perl -ne 'if(/function isDecimalDigit/){print "\n";$$n=0};print unless $$n;if(/See .tools.generate-identifier-regex.js/){$$n++;print `node tools/generate-identifier-regex.js`}' lib/code.js > tmp.js
	mv lib/code.js debian
	mv tmp.js lib/code.js

override_dh_auto_clean:
	if [ -e debian/code.js ]; then \
		rm lib/code.js; \
		mv -f debian/code.js lib/code.js; \
	fi
	dh_auto_clean --buildsystem=nodejs