factor out interaction model
[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
7cat \
8dygraph-layout.js \
9dygraph-canvas.js \
10dygraph.js \
11dygraph-gviz.js \
12dygraph-interaction-model.js \
13rgbcolor/rgbcolor.js \
14strftime/strftime-min.js \
15| perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
16> /tmp/dygraph.js
17
18java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
19> /tmp/dygraph-packed.js
20
21# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
22
23cat \
24/tmp/dygraph-packed.js \
25> dygraph-combined.js