File: rules

package info (click to toggle)
node-regjsparser 0.12.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: javascript: 1,196; makefile: 9
file content (13 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	cp parser.js parser-save.js
	node tools/generate-identifier-regex.js >unicode-data.js
	perl -i -pe 's/var\s*(NonAsciiIdentifierStart|NonAsciiIdentifierPartOnly)\s*=.*$$/var $$1 = unicodeData.$$1;/' parser.js

override_dh_auto_clean:
	if test -e parser-save.js; then mv parser-save.js parser.js; fi
	dh_auto_clean --buildsystem=nodejs