src/Pure/Tools/build.scala
changeset 50893 d55eb82ae77b
parent 50847 78c40f1cc9b3
child 50946 8ad3e376f63e
equal deleted inserted replaced
50892:9a7d81d66d09 50893:d55eb82ae77b
   422     verbose: Boolean, browser_info: Path)
   422     verbose: Boolean, browser_info: Path)
   423   {
   423   {
   424     // global browser info dir
   424     // global browser info dir
   425     if (info.options.bool("browser_info") && !(browser_info + Path.explode("index.html")).is_file)
   425     if (info.options.bool("browser_info") && !(browser_info + Path.explode("index.html")).is_file)
   426     {
   426     {
   427       browser_info.file.mkdirs()
   427       Isabelle_System.mkdirs(browser_info)
   428       File.copy(Path.explode("~~/lib/logo/isabelle.gif"),
   428       File.copy(Path.explode("~~/lib/logo/isabelle.gif"),
   429         browser_info + Path.explode("isabelle.gif"))
   429         browser_info + Path.explode("isabelle.gif"))
   430       File.write(browser_info + Path.explode("index.html"),
   430       File.write(browser_info + Path.explode("index.html"),
   431         File.read(Path.explode("~~/lib/html/library_index_header.template")) +
   431         File.read(Path.explode("~~/lib/html/library_index_header.template")) +
   432         File.read(Path.explode("~~/lib/html/library_index_content.template")) +
   432         File.read(Path.explode("~~/lib/html/library_index_content.template")) +
   612         (output_dir :: Isabelle_System.find_logics_dirs(), output_dir,
   612         (output_dir :: Isabelle_System.find_logics_dirs(), output_dir,
   613          Path.explode("$ISABELLE_BROWSER_INFO"))
   613          Path.explode("$ISABELLE_BROWSER_INFO"))
   614       }
   614       }
   615 
   615 
   616     // prepare log dir
   616     // prepare log dir
   617     (output_dir + LOG).file.mkdirs()
   617     Isabelle_System.mkdirs(output_dir + LOG)
   618 
   618 
   619     // optional cleanup
   619     // optional cleanup
   620     if (clean_build) {
   620     if (clean_build) {
   621       for (name <- full_tree.graph.all_succs(selected)) {
   621       for (name <- full_tree.graph.all_succs(selected)) {
   622         val files =
   622         val files =