File: rules

package info (click to toggle)
jstimezonedetect.js 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 208 kB
  • sloc: python: 147; makefile: 23
file content (27 lines) | stat: -rwxr-xr-x 930 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
%:
	dh $@

override_dh_auto_clean:
	rm -f jstz.js jstz.concat.js jstz.min.js
	dh_auto_clean

override_dh_auto_build:
	# Pulled from gulpfile.js. Gulp will be used to build once it is packaged
	cat jstz.*.js > jstz.concat.js
	echo "\nif (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\n" \
        "    module.exports = jstz;\n" \
        "} else if ((typeof define !== 'undefined' && define !== null) && (define.amd != null)) {\n" \
        "    define([], function() {\n" \
        "        return jstz;\n" \
        "    });\n" \
        "} else {\n" \
        "    if (typeof root === 'undefined') {\n" \
        "        window.jstz = jstz;\n" \
        "    } else {\n" \
        "        root.jstz = jstz;\n" \
        "    }\n" \
        "}\n}());\n" >> jstz.concat.js
	echo "(function (root) {" | cat - jstz.concat.js > jstz.js
	uglifyjs jstz.js -o jstz.min.js
	dh_auto_build