equal
deleted
inserted
replaced
134 val _ = Isabelle_System.mkdirs (Path.dir path); |
134 val _ = Isabelle_System.mkdirs (Path.dir path); |
135 val _ = File.generate path (#content file); |
135 val _ = File.generate path (#content file); |
136 in () end; |
136 in () end; |
137 |
137 |
138 fun export_file thy (file: file) = |
138 fun export_file thy (file: file) = |
139 Export.export thy (file_binding file) [#content file]; |
139 Export.export thy (file_binding file) [XML.Text (#content file)]; |
140 |
140 |
141 |
141 |
142 (* file types *) |
142 (* file types *) |
143 |
143 |
144 fun get_file_type thy ext = |
144 fun get_file_type thy ext = |
288 val _ = Export.report_export thy export_prefix; |
288 val _ = Export.report_export thy export_prefix; |
289 val binding' = |
289 val binding' = |
290 Path.map_binding (Path.append (Path.path_of_binding export_prefix)) binding; |
290 Path.map_binding (Path.append (Path.path_of_binding export_prefix)) binding; |
291 in |
291 in |
292 (if is_some executable then Export.export_executable else Export.export) |
292 (if is_some executable then Export.export_executable else Export.export) |
293 thy binding' [content] |
293 thy binding' [XML.Text content] |
294 end)); |
294 end)); |
295 val _ = |
295 val _ = |
296 if null export then () |
296 if null export then () |
297 else writeln (Export.message thy (Path.path_of_binding export_prefix)); |
297 else writeln (Export.message thy (Path.path_of_binding export_prefix)); |
298 in () end); |
298 in () end); |