src/Pure/Tools/generated_files.ML
changeset 72375 e48d93811ed7
parent 72050 d4de7e4754d2
child 72511 460d743010bc
equal deleted inserted replaced
72374:4c8295f2f849 72375:e48d93811ed7
   145   in (map Path.explode_binding files, thy) end;
   145   in (map Path.explode_binding files, thy) end;
   146 
   146 
   147 fun write_file dir (file: file) =
   147 fun write_file dir (file: file) =
   148   let
   148   let
   149     val path = Path.expand (Path.append dir (#path file));
   149     val path = Path.expand (Path.append dir (#path file));
   150     val _ = Isabelle_System.mkdirs (Path.dir path);
   150     val _ = Isabelle_System.make_directory (Path.dir path);
   151     val _ = File.generate path (#content file);
   151     val _ = File.generate path (#content file);
   152   in () end;
   152   in () end;
   153 
   153 
   154 fun export_file thy (file: file) =
   154 fun export_file thy (file: file) =
   155   Export.export thy (file_binding file) [XML.Text (#content file)];
   155   Export.export thy (file_binding file) [XML.Text (#content file)];