Admin/mirror-main
author wenzelm
Mon Jun 20 22:13:58 2005 +0200 (2005-06-20)
changeset 16485 77ae3bfa8b76
parent 16292 fbe2fc30a177
child 16573 cc86fd4eeee4
permissions -rwxr-xr-x
get_thm instead of obsolete Goals.get_thm;
improved msg;
wenzelm@12721
     1
#!/usr/bin/env bash
wenzelm@8222
     2
#
wenzelm@8222
     3
# $Id$
wenzelm@8222
     4
#
kleing@13567
     5
# Mirrors the Isabelle home page (those directly on http://isabelle.in.tum.de)
kleing@13567
     6
# It does *not* mirror the Isabelle distribution pages and downloads. There
kleing@13567
     7
# is a separate utility (mirror-dist) for that.
kleing@13567
     8
#
kleing@13567
     9
# Usage: mirror-main
kleing@13567
    10
#
wenzelm@8222
    11
wenzelm@8321
    12
HOST=$(hostname)
wenzelm@8321
    13
wenzelm@8321
    14
case ${HOST} in
haftmann@16292
    15
  sunbroy2)
haftmann@16292
    16
    DEST=/home/html/isabelle/html-data
haftmann@16292
    17
    ;;
berghofe@14229
    18
  atbroy1)
wenzelm@8222
    19
    DEST=/home/html/isabelle/html-data
wenzelm@8222
    20
    ;;
paulson@8225
    21
  *.cl.cam.ac.uk)
paulson@8225
    22
    USER=paulson
paulson@8225
    23
    DEST=/anfs/www/html/Research/HVG/Isabelle
wenzelm@8222
    24
    ;;
wenzelm@8222
    25
  *)
wenzelm@8321
    26
    echo "Unknown destination directory for ${HOST}"
wenzelm@8222
    27
    exit 2
wenzelm@8222
    28
    ;;
wenzelm@8222
    29
esac
wenzelm@8222
    30
haftmann@16278
    31
echo "Warning: this script now mirrors the *complete* Isabelle site"
haftmann@16278
    32
haftmann@16278
    33
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va --copy-links \
kleing@13100
    34
  $USER@sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.