update symlinks
[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 \
9> /tmp/dygraph.js
10
11java -jar custom_rhino.jar -c /tmp/dygraph.js \
12> /tmp/dygraph-packed.js
13
14# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
15
16cat \
17strftime/strftime-min.js \
18/tmp/dygraph-packed.js \
19> dygraph-combined.js