File: rules

package info (click to toggle)
node-jsdom 0.8.10+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 728 kB
  • ctags: 2,229
  • sloc: xml: 211; makefile: 19; sh: 2
file content (27 lines) | stat: -rwxr-xr-x 691 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
25
26
27
#!/usr/bin/make -f
# -*- makefile -*-

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

ifndef UPVER
UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 | cut -d+ -f1)
endif

%:
	dh $@

get-orig-source:
	uscan \
		--verbose \
		--download-version $(UPVER) \
		--force-download \
		--destdir . \
		--rename
	tar -xf node-jsdom_$(UPVER).orig.tar.gz
	@echo Removing minified jQuery
	@rm -rfv jsdom-$(UPVER)/example/jquery/
	@echo Removing tests, since the W3C testsuite is under a non-free license
	@rm -rfv jsdom-$(UPVER)/test/
	tar -caf node-jsdom_$(UPVER)+dfsg1.orig.tar.xz jsdom-$(UPVER)/
	rm -rf node-jsdom_$(UPVER).orig.tar.gz jsdom-$(UPVER)/