src/Pure/Admin/build_release.scala
changeset 73631 f17caa5002df
parent 73630 f2e836e013cb
child 73632 7c70f10e0b3b
equal deleted inserted replaced
73630:f2e836e013cb 73631:f17caa5002df
   507     Isabelle_System.with_tmp_file("archive", ext = "tar.gz")(archive_path =>
   507     Isabelle_System.with_tmp_file("archive", ext = "tar.gz")(archive_path =>
   508     {
   508     {
   509       Bytes.write(archive_path, archive.bytes)
   509       Bytes.write(archive_path, archive.bytes)
   510       val extract =
   510       val extract =
   511         List("README", "NEWS", "ANNOUNCE", "COPYRIGHT", "CONTRIBUTORS", "doc").
   511         List("README", "NEWS", "ANNOUNCE", "COPYRIGHT", "CONTRIBUTORS", "doc").
   512           map(name => context.release_name + "/" + name)
   512           map(name => context.dist_name + "/" + name)
   513       execute_tar(context.dist_dir,
   513       execute_tar(context.dist_dir,
   514         "-xzf " + File.bash_path(archive_path) + " " + Bash.strings(extract))
   514         "-xzf " + File.bash_path(archive_path) + " " + Bash.strings(extract))
   515     })
   515     })
   516 
   516 
   517     Isabelle_System.symlink(Path.explode(context.dist_name), context.dist_dir + ISABELLE)
   517     Isabelle_System.symlink(Path.explode(context.dist_name), context.dist_dir + ISABELLE)