src/HOL/Mirabelle/lib/Tools/mirabelle
changeset 48703 d408ff0abf23
parent 47848 030d3c89eacf
child 66156 f54c32c413a9
equal deleted inserted replaced
48702:e1752ccccc34 48703:d408ff0abf23
    30   echo "    -L LOGIC     parent logic to use (default $MIRABELLE_LOGIC)"
    30   echo "    -L LOGIC     parent logic to use (default $MIRABELLE_LOGIC)"
    31   echo "    -T THEORY    parent theory to use (default $MIRABELLE_THEORY)"
    31   echo "    -T THEORY    parent theory to use (default $MIRABELLE_THEORY)"
    32   echo "    -O DIR       output directory for test data (default $out)"
    32   echo "    -O DIR       output directory for test data (default $out)"
    33   echo "    -t TIMEOUT   timeout for each action in seconds (default $timeout)"
    33   echo "    -t TIMEOUT   timeout for each action in seconds (default $timeout)"
    34   echo "    -q           be quiet (suppress output of Isabelle process)"
    34   echo "    -q           be quiet (suppress output of Isabelle process)"
       
    35   echo "    -S FILE      user-provided setup file (no actions required)"
    35   echo
    36   echo
    36   echo "  Apply the given actions (i.e., automated proof tools)"
    37   echo "  Apply the given actions (i.e., automated proof tools)"
    37   echo "  at all proof steps in the given theory files."
    38   echo "  at all proof steps in the given theory files."
    38   echo
    39   echo
    39   echo "  ACTIONS is a colon-separated list of actions, where each action is"
    40   echo "  ACTIONS is a colon-separated list of actions, where each action is"
    61 
    62 
    62 # options
    63 # options
    63 
    64 
    64 [ $# -eq 0 ] && usage
    65 [ $# -eq 0 ] && usage
    65 
    66 
    66 while getopts "L:T:O:t:q?" OPT
    67 MIRABELLE_SETUP_FILE=
       
    68 
       
    69 while getopts "L:T:O:t:S:q?" OPT
    67 do
    70 do
    68   case "$OPT" in
    71   case "$OPT" in
    69     L)
    72     L)
    70       MIRABELLE_LOGIC="$OPTARG"
    73       MIRABELLE_LOGIC="$OPTARG"
    71       ;;
    74       ;;
    76       MIRABELLE_OUTPUT_PATH="$OPTARG"
    79       MIRABELLE_OUTPUT_PATH="$OPTARG"
    77       ;;
    80       ;;
    78     t)
    81     t)
    79       MIRABELLE_TIMEOUT="$OPTARG"
    82       MIRABELLE_TIMEOUT="$OPTARG"
    80       ;;
    83       ;;
       
    84     S)
       
    85       MIRABELLE_SETUP_FILE="$OPTARG"
       
    86       ;;
    81     q)
    87     q)
    82       MIRABELLE_QUIET="true"
    88       MIRABELLE_QUIET="true"
    83       ;;
    89       ;;
    84     \?)
    90     \?)
    85       usage
    91       usage
    86       ;;
    92       ;;
    87   esac
    93   esac
    88 done
    94 done
    89 
    95 
       
    96 export MIRABELLE_SETUP_FILE
    90 export MIRABELLE_QUIET
    97 export MIRABELLE_QUIET
    91 
    98 
    92 shift $(($OPTIND - 1))
    99 shift $(($OPTIND - 1))
    93 
   100 
    94 export MIRABELLE_ACTIONS="$1"
   101 export MIRABELLE_ACTIONS="$1"