Copy new plugins dir to dygraphs.com
[dygraphs.git] / generate-combined.sh
... / ...
CommitLineData
1#!/bin/bash
2# Generates a single JS file that's easier to include.
3
4# Pack all the JS together.
5
6# This list needs to be kept in sync w/ the one in dygraph-dev.js
7# and the one in jsTestDriver.conf.
8cat \
9dygraph-layout.js \
10dygraph-canvas.js \
11dygraph.js \
12dygraph-utils.js \
13dygraph-gviz.js \
14dygraph-interaction-model.js \
15dygraph-range-selector.js \
16dygraph-tickers.js \
17rgbcolor/rgbcolor.js \
18strftime/strftime-min.js \
19plugins/base.js \
20plugins/legend.js \
21plugins/install.js \
22| perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
23> /tmp/dygraph.js
24
25java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
26> /tmp/dygraph-packed.js
27
28# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
29
30cat \
31/tmp/dygraph-packed.js \
32> dygraph-combined.js