Admin/mirror-website
author krauss
Thu, 24 Feb 2011 21:54:28 +0100
changeset 41839 421a795cee05
parent 36859 51af1657263b
permissions -rwxr-xr-x
recdef -> fun(ction)

#!/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