-
Notifications
You must be signed in to change notification settings - Fork 430
/
build.sh
executable file
·61 lines (54 loc) · 1.19 KB
/
build.sh
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
#!/bin/bash
files=( \
jquery-jvectormap.js \
lib/jquery-mousewheel.js \
src/jvectormap.js \
src/abstract-element.js \
src/abstract-canvas-element.js \
src/abstract-shape-element.js \
src/svg-element.js \
src/svg-group-element.js \
src/svg-canvas-element.js \
src/svg-shape-element.js \
src/svg-path-element.js \
src/svg-circle-element.js \
src/svg-image-element.js \
src/svg-text-element.js \
src/vml-element.js \
src/vml-group-element.js \
src/vml-canvas-element.js \
src/vml-shape-element.js \
src/vml-path-element.js \
src/vml-circle-element.js \
src/vector-canvas.js \
src/simple-scale.js \
src/ordinal-scale.js \
src/numeric-scale.js \
src/color-scale.js \
src/legend.js \
src/data-series.js \
src/proj.js \
src/map-object.js \
src/region.js \
src/marker.js \
src/map.js \
src/multimap.js \
)
baseDir=`dirname $0`
counter=0
while [ $counter -lt ${#files[@]} ]; do
files[$counter]="$baseDir/${files[$counter]}"
let counter=counter+1
done
if [ -z "$1" ]
then
minified=jquery.jvectormap.min.js
else
minified=$1
fi
if [ -a $minified ]
then
rm $minified
fi
cat ${files[*]} >> $minified
uglifyjs $minified -o $minified -c