Admin/mirror-dist
author berghofe
Tue, 25 Mar 2003 09:47:05 +0100
changeset 13876 68f4ed8311ac
parent 13567 7f5bf04095bd
permissions -rwxr-xr-x
New decision procedure for Presburger arithmetic.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12721
226fc0e2e7e3 #!/usr/bin/env bash;
wenzelm
parents: 10531
diff changeset
     1
#!/usr/bin/env bash
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
     2
#
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
     3
# $Id$
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
     4
#
13567
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
     5
# Mirrors the Isabelle distribution pages and downloads. 
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
     6
#
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
     7
# It does *not* mirror the home page (those directly on 
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
     8
# http://isabelle.in.tum.de). There is a separate utility 
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
     9
# (mirror-main) for that.
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
    10
#
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
    11
# Usage: mirror-dist
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
    12
#
7f5bf04095bd comments + usage
kleing
parents: 12721
diff changeset
    13
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    14
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    15
HOST=$(hostname)
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    16
10531
wenzelm
parents: 8398
diff changeset
    17
case ${HOST} in
8397
wenzelm
parents: 8396
diff changeset
    18
  sunbroy*)
8323
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    19
    #test
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    20
    DEST=/tmp/isabelle-dist
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    21
    mkdir -p $DEST
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    22
    ;;
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    23
  *.cl.cam.ac.uk)
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    24
    DEST=/anfs/www/html/Research/HVG/Isabelle/dist
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    25
    ;;
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    26
  *)
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    27
    echo "Unknown destination directory for ${HOST}"
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    28
    exit 2
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    29
    ;;
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    30
esac
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    31
8398
f1c80ed70f48 renamed to rsync-isabelle;
wenzelm
parents: 8397
diff changeset
    32
exec $(dirname $0)/rsync-isabelle -d $DEST