Admin/Release/mirror-website
changeset 48190 76b6207eb000
parent 36859 51af1657263b
child 51087 175b43e0b9ce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Admin/Release/mirror-website	Thu Jul 05 14:13:14 2012 +0200
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+#
+# mirrors the Isabelle website
+
+HOST=$(hostname)
+
+case ${HOST} in
+  sunbroy* | atbroy* | macbroy*)
+    DEST=/home/html/isabelle/html-data
+    ;;
+  *.cl.cam.ac.uk)
+    USER=paulson
+    DEST=/anfs/www/html/research/hvg/Isabelle
+    ;;
+  *)
+    echo "Unknown destination directory for ${HOST}"
+    exit 2
+    ;;
+esac
+
+exec $(dirname $0)/isasync $DEST