X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=push-to-web.sh;h=aaf18bdbd60c1d0742ad19645ff25b5b1a54bfd0;hb=fccae3c0438703452b1a077421c1074982dd4344;hp=ba9d969b6f21f19baf614c3e828d0ecb4f5b16cc;hpb=14c9d5bb3d2a2d2fd3a329003e43ae58ba4c784a;p=dygraphs.git diff --git a/push-to-web.sh b/push-to-web.sh index ba9d969..aaf18bd 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -1,15 +1,16 @@ #!/bin/bash # This script generates the combined JS file, pushes all content to a web site # and then reverts the combined file. +set -x site=$1 # Produce dygraph-combined.js. ./generate-combined.sh # Copy everything to the site. -scp tests/*.html tests/*.js $site/tests/ \ +scp tests/*.html tests/*.js tests/*.png $site/tests/ \ && \ -scp dygraph*.js gadget.xml excanvas.js thumbnail.png docs/* $site/ +scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ # Revert changes to dygraph-combined.js -git co dygraph-combined.js +git checkout dygraph-combined.js