12721
|
1 |
#!/usr/bin/env bash
|
8224
|
2 |
#
|
|
3 |
# $Id$
|
|
4 |
#
|
13567
|
5 |
# Mirrors the Isabelle distribution pages and downloads.
|
|
6 |
#
|
|
7 |
# It does *not* mirror the home page (those directly on
|
|
8 |
# http://isabelle.in.tum.de). There is a separate utility
|
|
9 |
# (mirror-main) for that.
|
|
10 |
#
|
|
11 |
# Usage: mirror-dist
|
|
12 |
#
|
|
13 |
|
8224
|
14 |
|
8322
|
15 |
HOST=$(hostname)
|
|
16 |
|
10531
|
17 |
case ${HOST} in
|
8397
|
18 |
sunbroy*)
|
8323
|
19 |
#test
|
|
20 |
DEST=/tmp/isabelle-dist
|
|
21 |
mkdir -p $DEST
|
|
22 |
;;
|
8322
|
23 |
*.cl.cam.ac.uk)
|
|
24 |
DEST=/anfs/www/html/Research/HVG/Isabelle/dist
|
|
25 |
;;
|
8224
|
26 |
*)
|
8322
|
27 |
echo "Unknown destination directory for ${HOST}"
|
8224
|
28 |
exit 2
|
|
29 |
;;
|
|
30 |
esac
|
|
31 |
|
8398
|
32 |
exec $(dirname $0)/rsync-isabelle -d $DEST
|