File: rules

package info (click to toggle)
yui3 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 169,024 kB
  • ctags: 2,772
  • sloc: xml: 303; php: 126; makefile: 45
file content (69 lines) | stat: -rwxr-xr-x 2,202 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/make -f

%:
	dh $@

override_dh_install:
	dh_install

	# Adjusting file locations

	find debian/libjs-yui3-common/usr/share/javascript/yui3 -name "*.html" | \
	xargs perl -pi -e 's#\Q../../../../assets\E#/javascript/yui3/assets#g;'

	find debian/libjs-yui3-common/usr/share/javascript/yui3 -name "*.html" | \
	xargs perl -pi -e 's#\Q../../build\E#/javascript/yui3#g;'

	cd debian/libjs-yui3-common && for i in `find . -name "*-debug.js" -print`; do \
	    install -D -m0644 "$$i" ../libjs-yui3-debug/"$$i" ; \
	    rm -rf "$$i" ; \
	done

	cd debian/libjs-yui3-common && for i in `find . -name "*-min.js" -print`; do \
	    install -D -m0644 "$$i" ../libjs-yui3-min/"$$i" ; \
	    rm -rf "$$i" ; \
	done

	cd debian/libjs-yui3-common && for i in `find . -name "*.js" -print`; do \
	    install -D -m0644 "$$i" ../libjs-yui3-full/"$$i" ; \
	    rm -rf "$$i" ; \
	done

	cd debian/libjs-yui3-common && find . -type d -empty | xargs rmdir

	# creating flash files
	cd src/io/as && \
	as3compile com/yui/util/io.as -M io -R -o io.swf && \
	mv io.swf ../../../build/io-xdr

	cd src/uploader-deprecated/as && \
	as3compile Uploader.as -M Uploader -R -o uploader.swf && \
	mv uploader.swf ../../../build/uploader-deprecated/assets
          
	cd src/uploader/as && \
	as3compile FlashUploader.as -M flashUploader -R -o flashuploader.swf && \
	mv flashuploader.swf ../../../build/uploader/assets

override_dh_clean:
	dh_clean
	-find . -name "*.swf" | xargs rm

override_dh_compress:
	dh_compress -i -X.js -X-js -X.json -X.php

override_dh_installchangelogs:
	# workaround for a problem with non-changelog files being detected which I haven't time to investigate yet.
	dh_installchangelogs --exclude=docs

override_dh_installdocs:
	dh_installdocs --exclude=COPYING
	# Adjusting file locations

	find debian/libjs-yui3-doc/usr/share/doc/libjs-yui3-doc -name "*.html" | \
	xargs perl -pi -e 's#\Q../../build\E#/javascript/yui3#g;'

	find debian/libjs-yui3-doc/usr/share/doc/libjs-yui3-doc -name "*.html" | \
	xargs perl -pi -e 's#\Q../build\E#/javascript/yui3#g;'

	find debian/libjs-yui3-doc/usr/share/javascript/yui3 -name "*.html" | \
	xargs perl -pi -e 's#\Q../assets\E#/javascript/yui3/assets#g;'