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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12721
226fc0e2e7e3 #!/usr/bin/env bash;
wenzelm
parents: 9286
diff changeset
     1
#!/usr/bin/env bash
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     2
#
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     3
# $Id$
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     4
#
13567
7f5bf04095bd comments + usage
kleing
parents: 13100
diff changeset
     5
# Mirrors the Isabelle home page (those directly on http://isabelle.in.tum.de)
16573
cc86fd4eeee4 corrected comment
haftmann
parents: 16292
diff changeset
     6
# It *does* mirror the Isabelle distribution pages and downloads. There
cc86fd4eeee4 corrected comment
haftmann
parents: 16292
diff changeset
     7
# is also a separate utility (mirror-dist) for that.
13567
7f5bf04095bd comments + usage
kleing
parents: 13100
diff changeset
     8
#
7f5bf04095bd comments + usage
kleing
parents: 13100
diff changeset
     9
# Usage: mirror-main
7f5bf04095bd comments + usage
kleing
parents: 13100
diff changeset
    10
#
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    11
8321
wenzelm
parents: 8225
diff changeset
    12
HOST=$(hostname)
wenzelm
parents: 8225
diff changeset
    13
wenzelm
parents: 8225
diff changeset
    14
case ${HOST} in
16292
fbe2fc30a177 added sunbroy2
haftmann
parents: 16278
diff changeset
    15
  sunbroy2)
fbe2fc30a177 added sunbroy2
haftmann
parents: 16278
diff changeset
    16
    DEST=/home/html/isabelle/html-data
fbe2fc30a177 added sunbroy2
haftmann
parents: 16278
diff changeset
    17
    ;;
14229
bf89038cf551 Munich webserver is now atbroy1
berghofe
parents: 13567
diff changeset
    18
  atbroy1)
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    19
    DEST=/home/html/isabelle/html-data
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    20
    ;;
8225
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    21
  *.cl.cam.ac.uk)
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    22
    USER=paulson
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    23
    DEST=/anfs/www/html/Research/HVG/Isabelle
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    24
    ;;
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    25
  *)
8321
wenzelm
parents: 8225
diff changeset
    26
    echo "Unknown destination directory for ${HOST}"
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    27
    exit 2
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    28
    ;;
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    29
esac
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    30
16278
dda44b201c4d symlink problem hopefully solved
haftmann
parents: 14229
diff changeset
    31
echo "Warning: this script now mirrors the *complete* Isabelle site"
dda44b201c4d symlink problem hopefully solved
haftmann
parents: 14229
diff changeset
    32
dda44b201c4d symlink problem hopefully solved
haftmann
parents: 14229
diff changeset
    33
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va --copy-links \
13100
ff00791319e2 physical location of isabelle repository is now sunbroy2
kleing
parents: 12721
diff changeset
    34
  $USER@sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.