bin/isabelle-process
changeset 20923 059926d1d074
parent 17792 4a34fd6884b1
child 20929 cd2a6d00ec47
equal deleted inserted replaced
20922:14873e42659c 20923:059926d1d074
    28   echo
    28   echo
    29   echo "  Options are:"
    29   echo "  Options are:"
    30   echo "    -C           tell ML system to copy output image"
    30   echo "    -C           tell ML system to copy output image"
    31   echo "    -I           startup Isar interaction mode"
    31   echo "    -I           startup Isar interaction mode"
    32   echo "    -P           startup Proof General interaction mode"
    32   echo "    -P           startup Proof General interaction mode"
       
    33   echo "    -S           secure mode -- disallow critical operations (e.g. ML evaluation)"
    33   echo "    -X           startup PGIP interaction mode"
    34   echo "    -X           startup PGIP interaction mode"
    34   echo "    -c           tell ML system to compress output image"
    35   echo "    -c           tell ML system to compress output image"
    35   echo "    -e MLTEXT    pass MLTEXT to the ML session"
    36   echo "    -e MLTEXT    pass MLTEXT to the ML session"
    36   echo "    -f           pass 'Session.finish();' to the ML session"
    37   echo "    -f           pass 'Session.finish();' to the ML session"
    37   echo "    -m MODE      add print mode for output"
    38   echo "    -m MODE      add print mode for output"
    60 # options
    61 # options
    61 
    62 
    62 COPYDB=""
    63 COPYDB=""
    63 ISAR=false
    64 ISAR=false
    64 PROOFGENERAL=""
    65 PROOFGENERAL=""
       
    66 SECURE=""
    65 COMPRESS=""
    67 COMPRESS=""
    66 MLTEXT=""
    68 MLTEXT=""
    67 MODES=""
    69 MODES=""
    68 TERMINATE=""
    70 TERMINATE=""
    69 READONLY=""
    71 READONLY=""
    70 NOWRITE=""
    72 NOWRITE=""
    71 
    73 
    72 while getopts "XCIPce:fm:qruw" OPT
    74 while getopts "XCIPSce:fm:qruw" OPT
    73 do
    75 do
    74   case "$OPT" in
    76   case "$OPT" in
    75     C)
    77     C)
    76       COPYDB=true
    78       COPYDB=true
    77       ;;
    79       ;;
    78     I)
    80     I)
    79       ISAR=true
    81       ISAR=true
    80       ;;
    82       ;;
    81     P)
    83     P)
    82       PROOFGENERAL=true
    84       PROOFGENERAL=true
       
    85       ;;
       
    86     S)
       
    87       SECURE=true
    83       ;;
    88       ;;
    84     X)
    89     X)
    85       PGIP=true
    90       PGIP=true
    86       ;;
    91       ;;
    87     c)
    92     c)
   207 
   212 
   208 ML_SYSTEM_BASE=$(echo "$ML_SYSTEM" | cut -f1 -d-)
   213 ML_SYSTEM_BASE=$(echo "$ML_SYSTEM" | cut -f1 -d-)
   209 
   214 
   210 [ -n "$MODES" ] && MLTEXT="print_mode := [$MODES]; $MLTEXT"
   215 [ -n "$MODES" ] && MLTEXT="print_mode := [$MODES]; $MLTEXT"
   211 
   216 
       
   217 [ -n "$SECURE" ] && MLTEXT="$MLTEXT Secure.set_secure ();"
       
   218 
   212 if [ -n "$PGIP" ]; then
   219 if [ -n "$PGIP" ]; then
   213   MLTEXT="$MLTEXT; ProofGeneral.init_pgip $ISAR;"
   220   MLTEXT="$MLTEXT; ProofGeneral.init_pgip $ISAR;"
   214 elif [ -n "$PROOFGENERAL" ]; then
   221 elif [ -n "$PROOFGENERAL" ]; then
   215   MLTEXT="$MLTEXT; ProofGeneral.init $ISAR;"
   222   MLTEXT="$MLTEXT; ProofGeneral.init $ISAR;"
   216 elif [ "$ISAR" = true ]; then
   223 elif [ "$ISAR" = true ]; then