Merge branch 'master' of https://github.com/kberg/dygraphs
[dygraphs.git] / push-to-web.sh
... / ...
CommitLineData
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.
4set -x
5site=$1
6
7# Produce dygraph-combined.js.
8./generate-combined.sh
9
10# Generate documentation.
11./generate-documentation.py > docs/options.html
12
13# Copy everything to the site.
14scp tests/*.html tests/*.js tests/*.png $site/tests/ \
15&& \
16scp dygraph*.js gadget.xml excanvas.js flashcanvas.* thumbnail.png screenshot.png docs/* $site/
17
18# Revert changes to dygraph-combined.js and docs/options.html
19git checkout dygraph-combined.js
20rm docs/options.html