fractions
[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> /tmp/dygraph.js
11
12java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
13> /tmp/dygraph-packed.js
14
15# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
16
17cat \
18/tmp/dygraph-packed.js \
19> dygraph-combined.js