Remove MochiKit.Color dependence, add in simpler rgbcolor library. combined down...
[dygraphs.git] / generate-combined.sh
CommitLineData
6a1aa64f
DV
1#!/bin/bash
2# Generates a single JS file that's easier to include.
43f15770 3
f474c2a3 4# Pack up just the bits of MochiKit that we need.
79f17b42
DV
5cd mochikit_v14
6./scripts/pack.py \
f474c2a3 7Base \
79f17b42
DV
8> /tmp/mochikit-packed.js
9cd ..
10
f474c2a3 11# Pack the dygraphs JS and rgbcolor
6a1aa64f 12cat \
6a1aa64f
DV
13dygraph-canvas.js \
14dygraph.js \
f474c2a3 15rgbcolor/rgbcolor.js \
b2a516b8
DV
16> /tmp/dygraph.js
17
5709f0d5 18java -jar custom_rhino.jar -c /tmp/dygraph.js \
b2a516b8
DV
19> /tmp/dygraph-packed.js
20
5709f0d5
DV
21# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
22
b2a516b8
DV
23cat \
24/tmp/mochikit-packed.js \
6219c9d6 25strftime/strftime-min.js \
b2a516b8 26/tmp/dygraph-packed.js \
6a1aa64f 27> dygraph-combined.js