forked from DataTables/Buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.sh
40 lines (29 loc) · 784 Bytes
/
make.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
#!/bin/sh
OUT_DIR=$1
DEBUG=$2
# Change into script's own dir
cd $(dirname $0)
DT_SRC=$(dirname $(dirname $(pwd)))
DT_BUILT="${DT_SRC}/built/DataTables"
. $DT_SRC/build/include.sh
# Copy CSS
rsync -r css $OUT_DIR
css_frameworks buttons $OUT_DIR/css
# Copy images
#rsync -r images $OUT_DIR
# Copy JS
rsync -r js $OUT_DIR
js_compress $OUT_DIR/js/dataTables.buttons.js
js_frameworks buttons $OUT_DIR/js
js_compress $OUT_DIR/js/buttons.colVis.js
js_compress $OUT_DIR/js/buttons.html5.js
js_compress $OUT_DIR/js/buttons.flash.js
js_compress $OUT_DIR/js/buttons.print.js
# Copy and build examples
rsync -r examples $OUT_DIR
examples_process $OUT_DIR/examples
# SWF file flash export options
rsync -r swf $OUT_DIR
# Readme and license
cp Readme.md $OUT_DIR
cp License.txt $OUT_DIR