rearrange docs
[dygraphs.git] / generate-combined.sh
1 #!/bin/bash
2 # Generates a single JS file that's easier to include.
3
4 # Pack the dygraphs JS and rgbcolor
5 cat \
6 dygraph-canvas.js \
7 dygraph.js \
8 rgbcolor/rgbcolor.js \
9 > /tmp/dygraph.js
10
11 java -jar custom_rhino.jar -c /tmp/dygraph.js \
12 > /tmp/dygraph-packed.js
13
14 # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
15
16 cat \
17 strftime/strftime-min.js \
18 /tmp/dygraph-packed.js \
19 > dygraph-combined.js