equal
deleted
inserted
replaced
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) |