From ff533c1036531c10279a83e5b3cd112dd1afd706 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 19 Apr 2010 15:42:31 -0700 Subject: [PATCH] push-to-web.sh --- push-to-web.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 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 -- 2.7.4