src/Pure/Admin/build_history.scala
changeset 64213 b265dd04d57d
parent 64194 b5ada7dcceaa
child 64223 9d5b9f41df77
equal deleted inserted replaced
64212:104627db03ac 64213:b265dd04d57d
   117     verbose: Boolean = false,
   117     verbose: Boolean = false,
   118     build_args: List[String] = Nil): List[(Process_Result, Path)] =
   118     build_args: List[String] = Nil): List[(Process_Result, Path)] =
   119   {
   119   {
   120     /* sanity checks */
   120     /* sanity checks */
   121 
   121 
   122     if (File.eq(Path.explode("~~").file, hg.root.file))
   122     if (File.eq(Path.explode("~~"), hg.root))
   123       error("Repository coincides with ISABELLE_HOME=" + Path.explode("~~").expand)
   123       error("Repository coincides with ISABELLE_HOME=" + Path.explode("~~").expand)
   124 
   124 
   125     for (threads <- threads_list if threads < 1) error("Bad threads value < 1: " + threads)
   125     for (threads <- threads_list if threads < 1) error("Bad threads value < 1: " + threads)
   126 
   126 
   127     if (heap < 100) error("Bad heap value < 100: " + heap)
   127     if (heap < 100) error("Bad heap value < 100: " + heap)
   168         other_isabelle.bash(
   168         other_isabelle.bash(
   169           "env PATH=\"" + File.bash_path(Path.explode("~~/lib/dummy_stty").expand) + ":$PATH\" " +
   169           "env PATH=\"" + File.bash_path(Path.explode("~~/lib/dummy_stty").expand) + ":$PATH\" " +
   170             "bin/isabelle jedit -b" + (if (fresh) " -f" else ""),
   170             "bin/isabelle jedit -b" + (if (fresh) " -f" else ""),
   171           redirect = true, echo = verbose).check
   171           redirect = true, echo = verbose).check
   172 
   172 
   173         Isabelle_System.rm_tree(isabelle_base_log.file)
   173         Isabelle_System.rm_tree(isabelle_base_log)
   174       }
   174       }
   175 
   175 
   176       Isabelle_System.rm_tree(isabelle_output.file)
   176       Isabelle_System.rm_tree(isabelle_output)
   177       Isabelle_System.mkdirs(isabelle_output)
   177       Isabelle_System.mkdirs(isabelle_output)
   178 
   178 
   179 
   179 
   180       /* build */
   180       /* build */
   181 
   181