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