file-level comments
[dygraphs.git] / generate-combined.sh
CommitLineData
6a1aa64f
DV
1#!/bin/bash
2# Generates a single JS file that's easier to include.
43f15770 3
74a5af31
DV
4# Pack all the JS together.
5
6# This list needs to be kept in sync w/ the one in dygraph-dev.js
6a1aa64f 7cat \
74a5af31 8dygraph-layout.js \
6a1aa64f
DV
9dygraph-canvas.js \
10dygraph.js \
dedb4f5f 11dygraph-utils.js \
74a5af31 12dygraph-gviz.js \
846f3d2d 13dygraph-interaction-model.js \
f474c2a3 14rgbcolor/rgbcolor.js \
f18986e5 15strftime/strftime-min.js \
b4bd8805 16| perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
b2a516b8
DV
17> /tmp/dygraph.js
18
f18986e5 19java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
b2a516b8
DV
20> /tmp/dygraph-packed.js
21
5709f0d5
DV
22# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
23
b2a516b8 24cat \
b2a516b8 25/tmp/dygraph-packed.js \
6a1aa64f 26> dygraph-combined.js