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 \ |
f18986e5 | 9 | strftime/strftime-min.js \ |
b4bd8805 | 10 | | perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \ |
b2a516b8 DV |
11 | > /tmp/dygraph.js |
12 | ||
f18986e5 | 13 | java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \ |
b2a516b8 DV |
14 | > /tmp/dygraph-packed.js |
15 | ||
5709f0d5 DV |
16 | # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js. |
17 | ||
b2a516b8 | 18 | cat \ |
b2a516b8 | 19 | /tmp/dygraph-packed.js \ |
6a1aa64f | 20 | > dygraph-combined.js |