From: Dan Vanderkam Date: Mon, 19 Apr 2010 22:42:31 +0000 (-0700) Subject: push-to-web.sh X-Git-Tag: v1.0.0~696 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ff533c1036531c10279a83e5b3cd112dd1afd706;p=dygraphs.git push-to-web.sh --- diff --git a/push-to-web.sh b/push-to-web.sh new file mode 100755 index 0000000..ba9d969 --- /dev/null +++ b/push-to-web.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# This script generates the combined JS file, pushes all content to a web site +# and then reverts the combined file. +site=$1 + +# Produce dygraph-combined.js. +./generate-combined.sh + +# Copy everything to the site. +scp tests/*.html tests/*.js $site/tests/ \ +&& \ +scp dygraph*.js gadget.xml excanvas.js thumbnail.png docs/* $site/ + +# Revert changes to dygraph-combined.js +git co dygraph-combined.js