Merge pull request #63 from kberg/master
[dygraphs.git] / generate-combined.sh
CommitLineData
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 5cat \
6a1aa64f
DV
6dygraph-canvas.js \
7dygraph.js \
f474c2a3 8rgbcolor/rgbcolor.js \
f18986e5 9strftime/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 13java -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 18cat \
b2a516b8 19/tmp/dygraph-packed.js \
6a1aa64f 20> dygraph-combined.js