Admin/mirror-main
author obua
Fri, 16 Sep 2005 21:02:15 +0200
changeset 17440 df77edc4f5d0
parent 16573 cc86fd4eeee4
child 17671 e9e341bc7d42
permissions -rwxr-xr-x
fixed HOL-light/Isabelle syntax incompatability via more protect_xxx functions

#!/usr/bin/env bash
#
# $Id$
#
# Mirrors the Isabelle home page (those directly on http://isabelle.in.tum.de)
# It *does* mirror the Isabelle distribution pages and downloads. There
# is also a separate utility (mirror-dist) for that.
#
# Usage: mirror-main
#

HOST=$(hostname)

case ${HOST} in
  sunbroy2)
    DEST=/home/html/isabelle/html-data
    ;;
  atbroy1)
    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

echo "Warning: this script now mirrors the *complete* Isabelle site"

rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va --copy-links \
  $USER@sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.