push-to-web.sh
authorDan Vanderkam <danvdk@gmail.com>
Mon, 19 Apr 2010 22:42:31 +0000 (15:42 -0700)
committerDan Vanderkam <danvdk@gmail.com>
Mon, 19 Apr 2010 22:42:31 +0000 (15:42 -0700)
push-to-web.sh [new file with mode: 0755]

diff --git a/push-to-web.sh b/push-to-web.sh
new file mode 100755 (executable)
index 0000000..ba9d969
--- /dev/null
@@ -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