File: rules

package info (click to toggle)
jsjac 1.3.4+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 772 kB
  • ctags: 693
  • sloc: perl: 2,699; php: 927; makefile: 78
file content (34 lines) | stat: -rwxr-xr-x 962 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	yui-compressor jsjac.uncompressed.js -o jsjac.min.js

override_dh_auto_clean:
	rm -f jsjac.min.js
	dh_auto_clean

get-orig-source:
	OUTDIR=$$PWD ; \
	MAKEFILE=`echo $(MAKEFILE_LIST) | awk '{ print $$1 }'` ; \
	FILE=`readlink -f $$MAKEFILE` ; \
	DIR=`dirname $$FILE` ; \
	cd $$DIR/.. ; \
	TMP=`mktemp -d` ; \
	if ! USCAN=`uscan --destdir $$TMP` ; then exit 1 ; fi ; \
	VERSION=`echo $$USCAN | sed -n 's/.*Newer version (\(.*\)) available.*/\1/p'` ; \
	cd $$TMP ; \
	tar xzf jsjac_$$VERSION.orig.tar.gz ; \
	cd jsjac-$$VERSION ; \
	make clean ; \
	rm -f utils/jsmin utils/jsmin.c utils/fulljslint.js utils/rhino.js ; \
	rm -f utils/Makefile ; \
	cd .. ; \
	tar c jsjac-$$VERSION | gzip -9 > jsjac_$$VERSION+dfsg.orig.tar.gz ; \
	rm -rf jsjac-$$VERSION ; \
	cp jsjac_$$VERSION+dfsg.orig.tar.gz $$OUTDIR ; \
	cd $$OUTDIR ; \
	rm -rf $$TMP ; \
	echo Saved file at jsjac_$$VERSION+dfsg.orig.tar.gz