Admin/mirror-dist
changeset 8322 6ba8356baa34
parent 8224 97e26127fb6b
child 8323 64b67ed25a59
--- a/Admin/mirror-dist	Wed Mar 01 16:38:59 2000 +0100
+++ b/Admin/mirror-dist	Wed Mar 01 16:39:17 2000 +0100
@@ -3,15 +3,21 @@
 # $Id$
 #
 
-case $(hostname) in
-  foobar)
-    DEST=/foo/bar/dist
+HOST=$(hostname)
+
+case  ${HOST} in
+  *.cl.cam.ac.uk)
+    USER=paulson
+    DEST=/anfs/www/html/Research/HVG/Isabelle/dist
+    ;;
+  sunbroy79)
+    DEST=/tmp/isabelle-dist
     ;;
   *)
-    echo "Unknown destination directory!"
+    echo "Unknown destination directory for ${HOST}"
     exit 2
     ;;
 esac
 
 rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
-  sunbroy30.informatik.tu-muenchen.de:/home/html/isabelle/html-data/dist/. $DEST/.
+  $USER@sunbroy30.informatik.tu-muenchen.de:/home/html/isabelle/html-data/dist/. $DEST/.