back to exact copy of non-text file (amending dcc8e1d34b18);
authorwenzelm
Thu, 14 Apr 2016 11:34:10 +0200
changeset 62971 087e36ce0593
parent 62970 f78cf782bd33
child 62972 0eedd78c2b47
back to exact copy of non-text file (amending dcc8e1d34b18); explicit chmod, since Files.copy appears to copy permissions regardless of StandardCopyOption.COPY_ATTRIBUTES;
src/Pure/Thy/present.scala
--- a/src/Pure/Thy/present.scala	Wed Apr 13 18:04:27 2016 +0200
+++ b/src/Pure/Thy/present.scala	Thu Apr 14 11:34:10 2016 +0200
@@ -103,7 +103,11 @@
 
     if (info.options.bool("browser_info")) {
       Isabelle_System.mkdirs(session_prefix)
-      File.write(session_prefix + Path.basic("session_graph.pdf"), File.read(graph_file))
+
+      val session_graph = session_prefix + Path.basic("session_graph.pdf")
+      File.copy(graph_file, session_graph.file)
+      Isabelle_System.bash("chmod a+r " + File.bash_path(session_graph))
+
       File.copy(Path.explode("~~/etc/isabelle.css"), session_prefix)
 
       for (font <- Path.split(Isabelle_System.getenv_strict("ISABELLE_FONTS")))