Commit | Line | Data |
---|---|---|
6a1aa64f DV |
1 | #!/bin/bash |
2 | # Generates a single JS file that's easier to include. | |
43f15770 | 3 | |
f474c2a3 | 4 | # Pack the dygraphs JS and rgbcolor |
6a1aa64f | 5 | cat \ |
6a1aa64f DV |
6 | dygraph-canvas.js \ |
7 | dygraph.js \ | |
f474c2a3 | 8 | rgbcolor/rgbcolor.js \ |
b2a516b8 DV |
9 | > /tmp/dygraph.js |
10 | ||
5709f0d5 | 11 | java -jar custom_rhino.jar -c /tmp/dygraph.js \ |
b2a516b8 DV |
12 | > /tmp/dygraph-packed.js |
13 | ||
5709f0d5 DV |
14 | # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js. |
15 | ||
b2a516b8 | 16 | cat \ |
6219c9d6 | 17 | strftime/strftime-min.js \ |
b2a516b8 | 18 | /tmp/dygraph-packed.js \ |
6a1aa64f | 19 | > dygraph-combined.js |