2 # This script generates the combined JS file, pushes all content to a web site
3 # and then reverts the combined file.
5 if [ "$1" == "" ] ; then
6 echo "usage: $0 destination"
13 # Produce dygraph-combined.js.
14 .
/generate-combined.sh
16 # Generate documentation.
17 .
/generate-documentation.py
> docs
/options.html
18 chmod a
+r docs
/options.html
19 if [ -s docs
/options.html
] ; then
22 # Make sure everything will be readable on the web.
23 # This is like "chmod -R a+rX", but excludes the .git directory.
24 find .
-path .
/.git
-prune
-o
-print |
xargs chmod a
+rX
26 # Copy everything to the site.
27 rsync
-avzr gallery common tests jsdoc experimental plugins
$site \
29 rsync
-avzr dygraph
*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs
/* $site/
31 echo "generate-documentation.py failed"
34 # Revert changes to dygraph-combined.js and docs/options.html
35 git checkout dygraph-combined.js