File: rules

package info (click to toggle)
mozilla-noscript 2.6.8.19-1~deb7u2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,532 kB
  • sloc: makefile: 19; xml: 12
file content (24 lines) | stat: -rwxr-xr-x 872 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
%:
	dh $@ --with xul-ext --buildsystem=xul_ext --parallel

override_dh_auto_build:
	yui-compressor -o \
		chrome/noscript.jar!/content/noscript/antlr.js \
		debian/antlr3-all.js
	dh_auto_build -O--buildsystem=xul_ext -O--parallel

override_dh_install:
	dh_install -O--buildsystem=xul_ext -O--parallel
	rm -f debian/xul-ext-noscript/usr/share/xul-ext/noscript/NoScript_License.txt
	rm -f debian/xul-ext-noscript/usr/share/xul-ext/noscript/GPL.txt

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream-changelog -O--buildsystem=xul_ext -O--parallel

refresh-upstream-changelog:
	(echo "[+] new feature, [x] bug fix, [-] removed feature, [=] repackaging or cosmetic change"; \
	 echo; \
	 wget -q -O- http://noscript.net/changelog | \
	 sed -n -e '/<pre id="changelog"/,/<\/pre>/p' | tail -n +2 | head -n -1) \
	> debian/upstream-changelog