equal
deleted
inserted
replaced
34 echo " -X startup PGIP interaction mode" |
34 echo " -X startup PGIP interaction mode" |
35 echo " -c tell ML system to compress output image" |
35 echo " -c tell ML system to compress output image" |
36 echo " -e MLTEXT pass MLTEXT to the ML session" |
36 echo " -e MLTEXT pass MLTEXT to the ML session" |
37 echo " -f pass 'Session.finish();' to the ML session" |
37 echo " -f pass 'Session.finish();' to the ML session" |
38 echo " -m MODE add print mode for output" |
38 echo " -m MODE add print mode for output" |
|
39 echo " -p echo ISABELLE_PID on startup" |
39 echo " -q non-interactive session" |
40 echo " -q non-interactive session" |
40 echo " -r open heap file read-only" |
41 echo " -r open heap file read-only" |
41 echo " -u pass 'use\"ROOT.ML\";' to the ML session" |
42 echo " -u pass 'use\"ROOT.ML\";' to the ML session" |
42 echo " -w reset write permissions on OUTPUT" |
43 echo " -w reset write permissions on OUTPUT" |
43 echo |
44 echo |
65 PROOFGENERAL="" |
66 PROOFGENERAL="" |
66 SECURE="" |
67 SECURE="" |
67 COMPRESS="" |
68 COMPRESS="" |
68 MLTEXT="" |
69 MLTEXT="" |
69 MODES="" |
70 MODES="" |
|
71 ECHOPID="" |
70 TERMINATE="" |
72 TERMINATE="" |
71 READONLY="" |
73 READONLY="" |
72 NOWRITE="" |
74 NOWRITE="" |
73 |
75 |
74 while getopts "XCIPSce:fm:qruw" OPT |
76 while getopts "XCIPSce:fm:pqruw" OPT |
75 do |
77 do |
76 case "$OPT" in |
78 case "$OPT" in |
77 C) |
79 C) |
78 COPYDB=true |
80 COPYDB=true |
79 ;; |
81 ;; |
102 if [ -z "$MODES" ]; then |
104 if [ -z "$MODES" ]; then |
103 MODES="\"$OPTARG\"" |
105 MODES="\"$OPTARG\"" |
104 else |
106 else |
105 MODES="\"$OPTARG\", $MODES" |
107 MODES="\"$OPTARG\", $MODES" |
106 fi |
108 fi |
|
109 ;; |
|
110 p) |
|
111 ECHOPID=true |
107 ;; |
112 ;; |
108 q) |
113 q) |
109 TERMINATE=true |
114 TERMINATE=true |
110 ;; |
115 ;; |
111 r) |
116 r) |
225 fi |
230 fi |
226 |
231 |
227 export INFILE OUTFILE COPYDB COMPRESS MLTEXT TERMINATE NOWRITE \ |
232 export INFILE OUTFILE COPYDB COMPRESS MLTEXT TERMINATE NOWRITE \ |
228 ISABELLE_PID ISABELLE_TMP |
233 ISABELLE_PID ISABELLE_TMP |
229 |
234 |
|
235 [ -n "$ECHOPID" ] && echo "ISABELLE_PID=$ISABELLE_PID" |
|
236 |
230 if [ -f "$ISABELLE_HOME/lib/scripts/run-$ML_SYSTEM" ]; then |
237 if [ -f "$ISABELLE_HOME/lib/scripts/run-$ML_SYSTEM" ]; then |
231 "$ISABELLE_HOME/lib/scripts/run-$ML_SYSTEM" |
238 "$ISABELLE_HOME/lib/scripts/run-$ML_SYSTEM" |
232 else |
239 else |
233 "$ISABELLE_HOME/lib/scripts/run-$ML_SYSTEM_BASE" |
240 "$ISABELLE_HOME/lib/scripts/run-$ML_SYSTEM_BASE" |
234 fi |
241 fi |