# HG changeset patch # User wenzelm # Date 952619274 -3600 # Node ID f1c80ed70f48b38a81c0ce37d716631d3f742b82 # Parent f2d371bde3c40bd5172ac09ce9ea4680042c9db3 renamed to rsync-isabelle; diff -r f2d371bde3c4 -r f1c80ed70f48 Admin/mirror-dist --- a/Admin/mirror-dist Thu Mar 09 17:25:28 2000 +0100 +++ b/Admin/mirror-dist Thu Mar 09 17:27:54 2000 +0100 @@ -20,4 +20,4 @@ ;; esac -exec $(dirname $0)/mirror-isabelle-dist -d $DEST +exec $(dirname $0)/rsync-isabelle -d $DEST diff -r f2d371bde3c4 -r f1c80ed70f48 Admin/mirror-isabelle-dist --- a/Admin/mirror-isabelle-dist Thu Mar 09 17:25:28 2000 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -#!/bin/sh -# -# mirror script for isabelle distribution -# -# $Id$ -# - -## diagnostics - -PRG=`basename "$0"` - -usage() -{ - echo - echo "Usage: $PRG [OPTIONS] [DEST]" - echo - echo " Options are:" - echo " -n dry run, don't do anything, just report what would happen" - echo " -d delete files that are not on the server (beware!)" - echo - exit 1 -} - -fail() -{ - echo "$1" >&2 - exit 2 -} - - -## process command line - -# options - -ARGS="" - -while getopts "nd" OPT -do - case "$OPT" in - n) - ARGS="$ARGS -n" - ;; - d) - ARGS="$ARGS --delete" - ;; - \?) - usage - ;; - esac -done - -shift `expr $OPTIND - 1` - - -# arguments - -[ $# -ne 1 ] && { echo "Bad arguments: $*"; usage; } - -DEST="$1"; shift; - - -## main - -exec rsync -va $ARGS rsync://www4.in.tum.de/isabelle-dist/. "$DEST/." diff -r f2d371bde3c4 -r f1c80ed70f48 Admin/rsync-isabelle --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Admin/rsync-isabelle Thu Mar 09 17:27:54 2000 +0100 @@ -0,0 +1,64 @@ +#!/bin/sh +# +# mirror script for isabelle distribution +# +# $Id$ +# + +## diagnostics + +PRG=`basename "$0"` + +usage() +{ + echo + echo "Usage: $PRG [OPTIONS] [DEST]" + echo + echo " Options are:" + echo " -n dry run, don't do anything, just report what would happen" + echo " -d delete files that are not on the server (beware!)" + echo + exit 1 +} + +fail() +{ + echo "$1" >&2 + exit 2 +} + + +## process command line + +# options + +ARGS="" + +while getopts "nd" OPT +do + case "$OPT" in + n) + ARGS="$ARGS -n" + ;; + d) + ARGS="$ARGS --delete" + ;; + \?) + usage + ;; + esac +done + +shift `expr $OPTIND - 1` + + +# arguments + +[ $# -ne 1 ] && { echo "Bad arguments: $*"; usage; } + +DEST="$1"; shift; + + +## main + +exec rsync -va $ARGS rsync://www4.in.tum.de/isabelle-dist/. "$DEST/."