Admin/mirror-main
author haftmann
Mon, 06 Jun 2005 14:12:07 +0200
changeset 16301 f9f2e1643593
parent 16292 fbe2fc30a177
child 16573 cc86fd4eeee4
permissions -rwxr-xr-x
migrated scripts to new webiste
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)
7f5bf04095bd comments + usage
kleing
parents: 13100
diff changeset
     6
# It does *not* mirror the Isabelle distribution pages and downloads. There
7f5bf04095bd comments + usage
kleing
parents: 13100
diff changeset
     7
# is a separate utility (mirror-dist) for that.
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/.