works in IE9
[dygraphs.git] / push-to-web.sh
CommitLineData
ff533c10
DV
1#!/bin/bash
2# This script generates the combined JS file, pushes all content to a web site
3# and then reverts the combined file.
11a25550 4set -x
ff533c10
DV
5site=$1
6
7# Produce dygraph-combined.js.
8./generate-combined.sh
9
d3454ce4 10# Generate documentation.
817b08dd 11./generate-documentation.py > docs/options.html
d3454ce4 12
ff533c10 13# Copy everything to the site.
e2b5f2bc 14scp tests/*.html tests/*.js tests/*.png $site/tests/ \
ff533c10 15&& \
1a5411b9 16scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/
ff533c10 17
d3454ce4 18# Revert changes to dygraph-combined.js and docs/options.html
fccae3c0 19git checkout dygraph-combined.js
d3454ce4 20rm docs/options.html