Commit | Line | Data |
---|---|---|
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 | |
5 | if [ "$1" == "" ] ; then | |
cf88e0ec | 6 | echo "usage: $0 destination" |
5f303314 RK |
7 | exit 1 |
8 | fi | |
9 | ||
11a25550 | 10 | set -x |
ff533c10 | 11 | site=$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 |
b7d36956 | 17 | chmod a+r docs/options.html |
aade5c60 RK |
18 | if [ -s docs/options.html ] ; then |
19 | ./generate-jsdoc.sh | |
d3454ce4 | 20 | |
aade5c60 | 21 | # Copy everything to the site. |
6070efe2 | 22 | rsync -avzr gallery common tests jsdoc experimental plugins $site \ |
aade5c60 | 23 | && \ |
6070efe2 | 24 | rsync -avzr dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/ $site/ |
aade5c60 RK |
25 | else |
26 | echo "generate-documentation.py failed" | |
27 | fi | |
ff533c10 | 28 | |
d3454ce4 | 29 | # Revert changes to dygraph-combined.js and docs/options.html |
fccae3c0 | 30 | git checkout dygraph-combined.js |
d3454ce4 | 31 | rm docs/options.html |