src/Pure/Admin/build_release.scala
changeset 75491 47d790984e82
parent 75478 904607aedc4b
child 75506 ee51db628e71
equal deleted inserted replaced
75490:5e37ea93759d 75491:47d790984e82
   100   val ISABELLE_TAGS: Path = Path.explode("etc/ISABELLE_TAGS")
   100   val ISABELLE_TAGS: Path = Path.explode("etc/ISABELLE_TAGS")
   101   val ISABELLE_IDENTIFIER: Path = Path.explode("etc/ISABELLE_IDENTIFIER")
   101   val ISABELLE_IDENTIFIER: Path = Path.explode("etc/ISABELLE_IDENTIFIER")
   102 
   102 
   103   object Release_Archive {
   103   object Release_Archive {
   104     def make(bytes: Bytes, rename: String = ""): Release_Archive = {
   104     def make(bytes: Bytes, rename: String = ""): Release_Archive = {
   105       Isabelle_System.with_tmp_dir("tmp")(dir =>
   105       Isabelle_System.with_tmp_dir("build_release")(dir =>
   106         Isabelle_System.with_tmp_file("archive", ext = "tar.gz") { archive_path =>
   106         Isabelle_System.with_tmp_file("archive", ext = "tar.gz") { archive_path =>
   107           val isabelle_dir = Isabelle_System.make_directory(dir + ISABELLE)
   107           val isabelle_dir = Isabelle_System.make_directory(dir + ISABELLE)
   108 
   108 
   109           Bytes.write(archive_path, bytes)
   109           Bytes.write(archive_path, bytes)
   110           execute_tar(isabelle_dir, "-xzf " + File.bash_path(archive_path), strip = 1)
   110           execute_tar(isabelle_dir, "-xzf " + File.bash_path(archive_path), strip = 1)