src/Pure/Tools/build.ML
changeset 68227 b95a43d8b826
parent 68198 6710167e17af
child 68511 c6626358bf21
equal deleted inserted replaced
68226:5ce62512de35 68227:b95a43d8b826
    97       else if function = (Markup.functionN, Markup.exportN) andalso
    97       else if function = (Markup.functionN, Markup.exportN) andalso
    98         not (null args) andalso #1 (hd args) = Markup.idN
    98         not (null args) andalso #1 (hd args) = Markup.idN
    99       then
    99       then
   100         let
   100         let
   101           val path = Path.expand (Path.explode ("$ISABELLE_EXPORT_TMP/export" ^ serial_string ()));
   101           val path = Path.expand (Path.explode ("$ISABELLE_EXPORT_TMP/export" ^ serial_string ()));
   102           val _ = File.open_output (fn out => List.app (File.output out) output) path;
   102           val _ = File.write_list path output;
   103         in inline_message (#2 function) (tl args @ [(Markup.fileN, Path.implode path)]) end
   103         in inline_message (#2 function) (tl args @ [(Markup.fileN, Path.implode path)]) end
   104       else
   104       else
   105         (case Markup.dest_loading_theory props of
   105         (case Markup.dest_loading_theory props of
   106           SOME name => writeln ("\floading_theory = " ^ name)
   106           SOME name => writeln ("\floading_theory = " ^ name)
   107         | NONE => raise Output.Protocol_Message props)
   107         | NONE => raise Output.Protocol_Message props)