Remove MochiKit.Color dependence, add in simpler rgbcolor library. combined down...
[dygraphs.git] / generate-combined.sh
1 #!/bin/bash
2 # Generates a single JS file that's easier to include.
3
4 # Pack up just the bits of MochiKit that we need.
5 cd mochikit_v14
6 ./scripts/pack.py \
7 Base \
8 > /tmp/mochikit-packed.js
9 cd ..
10
11 # Pack the dygraphs JS and rgbcolor
12 cat \
13 dygraph-canvas.js \
14 dygraph.js \
15 rgbcolor/rgbcolor.js \
16 > /tmp/dygraph.js
17
18 java -jar custom_rhino.jar -c /tmp/dygraph.js \
19 > /tmp/dygraph-packed.js
20
21 # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
22
23 cat \
24 /tmp/mochikit-packed.js \
25 strftime/strftime-min.js \
26 /tmp/dygraph-packed.js \
27 > dygraph-combined.js