diff -r cd0a411b7fc1 -r 76b6207eb000 Admin/isasync --- a/Admin/isasync Thu Jul 05 13:35:46 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,129 +0,0 @@ -#!/usr/bin/env bash -# -# mirror script for Isabelle distribution or website - - -## diagnostics - -PRG=`basename "$0"` - -usage() -{ - echo - echo "Usage: $PRG [OPTIONS] DEST" - echo - echo " Options are:" - echo " -h print help message" - echo " -n dry run, don't do anything, just report what would happen" - echo " -w (ignored for backward compatibility)" - echo " -d delete files that are not on the server (BEWARE!)" - echo - exit 1 -} - -fail() -{ - echo "$1" >&2 - exit 2 -} - - -## process command line - -# options - -HELP="" -ARGS="" -SRC="isabelle-website" - -while getopts "hnwd" OPT -do - case "$OPT" in - h) - HELP=true - ;; - n) - ARGS="$ARGS -n" - ;; - w) - echo "option -w ignored" - ;; - d) - ARGS="$ARGS --delete" - ;; - \?) - usage - ;; - esac -done - -shift `expr $OPTIND - 1` - - -# help - -if [ -n "$HELP" ]; then - cat <