push flashcanvas to web
[dygraphs.git] / generate-combined.sh
... / ...
CommitLineData
1#!/bin/bash
2# Generates a single JS file that's easier to include.
3
4# Pack the dygraphs JS and rgbcolor
5cat \
6dygraph-canvas.js \
7dygraph.js \
8rgbcolor/rgbcolor.js \
9strftime/strftime-min.js \
10| perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
11> /tmp/dygraph.js
12
13java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
14> /tmp/dygraph-packed.js
15
16# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
17
18cat \
19/tmp/dygraph-packed.js \
20> dygraph-combined.js