merge
[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 strftime/strftime-min.js \
10 > /tmp/dygraph.js
11
12 java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
13 > /tmp/dygraph-packed.js
14
15 # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
16
17 cat \
18 /tmp/dygraph-packed.js \
19 > dygraph-combined.js