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 | ||
10 | # Copy everything to the site. | |
e2b5f2bc | 11 | scp tests/*.html tests/*.js tests/*.png $site/tests/ \ |
ff533c10 | 12 | && \ |
fccae3c0 | 13 | scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ |
ff533c10 DV |
14 | |
15 | # Revert changes to dygraph-combined.js | |
fccae3c0 | 16 | git checkout dygraph-combined.js |