Commit | Line | Data |
---|---|---|
6a1aa64f DV |
1 | #!/bin/bash |
2 | # Generates a single JS file that's easier to include. | |
43f15770 | 3 | |
f474c2a3 | 4 | # Pack up just the bits of MochiKit that we need. |
79f17b42 DV |
5 | cd mochikit_v14 |
6 | ./scripts/pack.py \ | |
f474c2a3 | 7 | Base \ |
79f17b42 DV |
8 | > /tmp/mochikit-packed.js |
9 | cd .. | |
10 | ||
f474c2a3 | 11 | # Pack the dygraphs JS and rgbcolor |
6a1aa64f | 12 | cat \ |
6a1aa64f DV |
13 | dygraph-canvas.js \ |
14 | dygraph.js \ | |
f474c2a3 | 15 | rgbcolor/rgbcolor.js \ |
b2a516b8 DV |
16 | > /tmp/dygraph.js |
17 | ||
5709f0d5 | 18 | java -jar custom_rhino.jar -c /tmp/dygraph.js \ |
b2a516b8 DV |
19 | > /tmp/dygraph-packed.js |
20 | ||
5709f0d5 DV |
21 | # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js. |
22 | ||
b2a516b8 DV |
23 | cat \ |
24 | /tmp/mochikit-packed.js \ | |
6219c9d6 | 25 | strftime/strftime-min.js \ |
b2a516b8 | 26 | /tmp/dygraph-packed.js \ |
6a1aa64f | 27 | > dygraph-combined.js |