changeset 81623 | a2e68976251f |
parent 81610 | ed9ffd8e9e40 |
child 81625 | dee16531eaf0 |
81613:44afa6f1baad | 81623:a2e68976251f |
---|---|
143 end |
143 end |
144 |
144 |
145 val prob_path = |
145 val prob_path = |
146 if problem_dest_dir = "" then |
146 if problem_dest_dir = "" then |
147 File.tmp_path problem_file_name |
147 File.tmp_path problem_file_name |
148 else if File.exists (Path.explode problem_dest_dir) then |
148 else if File.is_dir (Path.explode problem_dest_dir) then |
149 Path.explode problem_dest_dir + problem_file_name |
149 Path.explode problem_dest_dir + problem_file_name |
150 else |
150 else |
151 error ("No such directory: " ^ quote problem_dest_dir) |
151 error ("No such directory: " ^ quote problem_dest_dir) |
152 |
152 |
153 val executable = |
153 val executable = |
287 fun clean_up () = if problem_dest_dir = "" then (try File.rm prob_path; ()) else () |
287 fun clean_up () = if problem_dest_dir = "" then (try File.rm prob_path; ()) else () |
288 fun export (_, (output, _, _, _, _, _, _, _), _) = |
288 fun export (_, (output, _, _, _, _, _, _, _), _) = |
289 let val proof_dest_dir_path = Path.explode proof_dest_dir in |
289 let val proof_dest_dir_path = Path.explode proof_dest_dir in |
290 if proof_dest_dir = "" then |
290 if proof_dest_dir = "" then |
291 Output.system_message "don't export proof" |
291 Output.system_message "don't export proof" |
292 else if File.exists proof_dest_dir_path then |
292 else if File.is_dir proof_dest_dir_path then |
293 File.write (proof_dest_dir_path + proof_file_name) output |
293 File.write (proof_dest_dir_path + proof_file_name) output |
294 else |
294 else |
295 error ("No such directory: " ^ quote proof_dest_dir) |
295 error ("No such directory: " ^ quote proof_dest_dir) |
296 end |
296 end |
297 |
297 |