Wrong usage statement.
[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.
5f303314
RK
4
5if [ "$1" == "" ] ; then
cf88e0ec 6 echo "usage: $0 destination"
5f303314
RK
7 exit 1
8fi
9
11a25550 10set -x
ff533c10 11site=$1
ff533c10
DV
12# Produce dygraph-combined.js.
13./generate-combined.sh
14
d3454ce4 15# Generate documentation.
817b08dd 16./generate-documentation.py > docs/options.html
82561384 17./generate-jsdoc.sh
d3454ce4 18
ff533c10 19# Copy everything to the site.
5f303314 20scp -r tests jsdoc experimental $site \
ff533c10 21&& \
1a5411b9 22scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/
ff533c10 23
d3454ce4 24# Revert changes to dygraph-combined.js and docs/options.html
fccae3c0 25git checkout dygraph-combined.js
d3454ce4 26rm docs/options.html