bin/isabelle-process
changeset 52054 eaf17514aabd
parent 51964 f1c1d8637216
child 52056 fc458f304f93
equal deleted inserted replaced
52053:5ffb9bad6517 52054:eaf17514aabd
    30   echo "    -P           startup Proof General interaction mode"
    30   echo "    -P           startup Proof General interaction mode"
    31   echo "    -S           secure mode -- disallow critical operations"
    31   echo "    -S           secure mode -- disallow critical operations"
    32   echo "    -T ADDR      startup process wrapper, with socket address"
    32   echo "    -T ADDR      startup process wrapper, with socket address"
    33   echo "    -W IN:OUT    startup process wrapper, with input/output fifos"
    33   echo "    -W IN:OUT    startup process wrapper, with input/output fifos"
    34   echo "    -e MLTEXT    pass MLTEXT to the ML session"
    34   echo "    -e MLTEXT    pass MLTEXT to the ML session"
    35   echo "    -f           pass 'Session.finish();' to the ML session"
       
    36   echo "    -m MODE      add print mode for output"
    35   echo "    -m MODE      add print mode for output"
    37   echo "    -q           non-interactive session"
    36   echo "    -q           non-interactive session"
    38   echo "    -r           open heap file read-only"
    37   echo "    -r           open heap file read-only"
    39   echo "    -u           pass 'use\"ROOT.ML\";' to the ML session"
       
    40   echo "    -w           reset write permissions on OUTPUT"
    38   echo "    -w           reset write permissions on OUTPUT"
    41   echo
    39   echo
    42   echo "  INPUT (default \"$ISABELLE_LOGIC\") and OUTPUT specify in/out heaps."
    40   echo "  INPUT (default \"$ISABELLE_LOGIC\") and OUTPUT specify in/out heaps."
    43   echo "  These are either names to be searched in the Isabelle path, or"
    41   echo "  These are either names to be searched in the Isabelle path, or"
    44   echo "  actual file names (containing at least one /)."
    42   echo "  actual file names (containing at least one /)."
    67 MODES=""
    65 MODES=""
    68 TERMINATE=""
    66 TERMINATE=""
    69 READONLY=""
    67 READONLY=""
    70 NOWRITE=""
    68 NOWRITE=""
    71 
    69 
    72 while getopts "IPST:W:e:fm:qruw" OPT
    70 while getopts "IPST:W:e:m:qrw" OPT
    73 do
    71 do
    74   case "$OPT" in
    72   case "$OPT" in
    75     I)
    73     I)
    76       ISAR=true
    74       ISAR=true
    77       ;;
    75       ;;
    87     W)
    85     W)
    88       WRAPPER_FIFOS="$OPTARG"
    86       WRAPPER_FIFOS="$OPTARG"
    89       ;;
    87       ;;
    90     e)
    88     e)
    91       MLTEXT="$MLTEXT $OPTARG"
    89       MLTEXT="$MLTEXT $OPTARG"
    92       ;;
       
    93     f)
       
    94       MLTEXT="$MLTEXT Command_Line.tool0 Session.finish;"
       
    95       ;;
    90       ;;
    96     m)
    91     m)
    97       if [ -z "$MODES" ]; then
    92       if [ -z "$MODES" ]; then
    98         MODES="\"$OPTARG\""
    93         MODES="\"$OPTARG\""
    99       else
    94       else
   103     q)
    98     q)
   104       TERMINATE=true
    99       TERMINATE=true
   105       ;;
   100       ;;
   106     r)
   101     r)
   107       READONLY=true
   102       READONLY=true
   108       ;;
       
   109     u)
       
   110       MLTEXT="$MLTEXT use\"ROOT.ML\";"
       
   111       ;;
   103       ;;
   112     w)
   104     w)
   113       NOWRITE=true
   105       NOWRITE=true
   114       ;;
   106       ;;
   115     \?)
   107     \?)