12721
|
1 |
#!/usr/bin/env bash
|
8222
|
2 |
#
|
|
3 |
# $Id$
|
|
4 |
#
|
13567
|
5 |
# Mirrors the Isabelle home page (those directly on http://isabelle.in.tum.de)
|
16573
|
6 |
# It *does* mirror the Isabelle distribution pages and downloads. There
|
|
7 |
# is also a separate utility (mirror-dist) for that.
|
13567
|
8 |
#
|
|
9 |
# Usage: mirror-main
|
|
10 |
#
|
8222
|
11 |
|
8321
|
12 |
HOST=$(hostname)
|
|
13 |
|
|
14 |
case ${HOST} in
|
16292
|
15 |
sunbroy2)
|
|
16 |
DEST=/home/html/isabelle/html-data
|
|
17 |
;;
|
14229
|
18 |
atbroy1)
|
8222
|
19 |
DEST=/home/html/isabelle/html-data
|
|
20 |
;;
|
8225
|
21 |
*.cl.cam.ac.uk)
|
|
22 |
USER=paulson
|
|
23 |
DEST=/anfs/www/html/Research/HVG/Isabelle
|
8222
|
24 |
;;
|
|
25 |
*)
|
8321
|
26 |
echo "Unknown destination directory for ${HOST}"
|
8222
|
27 |
exit 2
|
|
28 |
;;
|
|
29 |
esac
|
|
30 |
|
16278
|
31 |
echo "Warning: this script now mirrors the *complete* Isabelle site"
|
|
32 |
|
|
33 |
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va --copy-links \
|
17671
|
34 |
$USER@sunbroy2.informatik.tu-muenchen.de:/home/proj/isabelle/website/. $DEST/.
|