| 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. |
| 4 | set -x |
| 5 | site=$1 |
| 6 | |
| 7 | # Produce dygraph-combined.js. |
| 8 | ./generate-combined.sh |
| 9 | |
| 10 | # Generate documentation. |
| 11 | ./generate-documentation.py > docs/options.html |
| 12 | ./generate-jsdoc.sh |
| 13 | |
| 14 | # Copy everything to the site. |
| 15 | scp -r tests jsdoc $site \ |
| 16 | && \ |
| 17 | scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ |
| 18 | |
| 19 | # Revert changes to dygraph-combined.js and docs/options.html |
| 20 | git checkout dygraph-combined.js |
| 21 | rm docs/options.html |