Rename test and test methods so they do not conflict with multiple-axes.js.
[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
8d3d15af 7# and the one in jsTestDriver.conf.
6a1aa64f 8cat \
74a5af31 9dygraph-layout.js \
6a1aa64f
DV
10dygraph-canvas.js \
11dygraph.js \
dedb4f5f 12dygraph-utils.js \
74a5af31 13dygraph-gviz.js \
846f3d2d 14dygraph-interaction-model.js \
ccd9d7c2 15dygraph-range-selector.js \
48e614ac 16dygraph-tickers.js \
f474c2a3 17rgbcolor/rgbcolor.js \
f18986e5 18strftime/strftime-min.js \
1533d06e 19dashed-canvas.js \
e2c21500 20plugins/base.js \
cbe41be1 21plugins/annotations.js \
f8540c66 22plugins/axes.js \
72223c02
DV
23plugins/chart-labels.js \
24plugins/grid.js \
cbe41be1 25plugins/legend.js \
e2c21500 26plugins/install.js \
b4bd8805 27| perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
b2a516b8
DV
28> /tmp/dygraph.js
29
f18986e5 30java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
b2a516b8
DV
31> /tmp/dygraph-packed.js
32
41da6a86 33(
a8b9a8e2 34 echo '/*! @license Copyright 2011 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
41da6a86
DV
35 cat /tmp/dygraph-packed.js
36) > dygraph-combined.js
4d3672ff 37chmod a+r dygraph-combined.js