equal
deleted
inserted
replaced
116 |
116 |
117 def make_news(other_isabelle: Other_Isabelle, dist_version: String) |
117 def make_news(other_isabelle: Other_Isabelle, dist_version: String) |
118 { |
118 { |
119 val target = other_isabelle.isabelle_home + Path.explode("doc") |
119 val target = other_isabelle.isabelle_home + Path.explode("doc") |
120 val target_fonts = target + Path.explode("fonts") |
120 val target_fonts = target + Path.explode("fonts") |
121 Isabelle_System.mkdirs(target_fonts) |
121 Isabelle_System.make_directory(target_fonts) |
122 other_isabelle.copy_fonts(target_fonts) |
122 other_isabelle.copy_fonts(target_fonts) |
123 |
123 |
124 HTML.write_document(target, "NEWS.html", |
124 HTML.write_document(target, "NEWS.html", |
125 List(HTML.title("NEWS (" + dist_version + ")")), |
125 List(HTML.title("NEWS (" + dist_version + ")")), |
126 List( |
126 List( |
199 }) ::: more_names.map(contrib_name)) |
199 }) ::: more_names.map(contrib_name)) |
200 } |
200 } |
201 |
201 |
202 def make_contrib(dir: Path) |
202 def make_contrib(dir: Path) |
203 { |
203 { |
204 Isabelle_System.mkdirs(Components.contrib(dir)) |
204 Isabelle_System.make_directory(Components.contrib(dir)) |
205 File.write(Components.contrib(dir, "README"), |
205 File.write(Components.contrib(dir, "README"), |
206 """This directory contains add-on components that contribute to the main |
206 """This directory contains add-on components that contribute to the main |
207 Isabelle distribution. Separate licensing conditions apply, see each |
207 Isabelle distribution. Separate licensing conditions apply, see each |
208 directory individually. |
208 directory individually. |
209 """) |
209 """) |
322 } |
322 } |
323 } |
323 } |
324 else { |
324 else { |
325 progress.echo_warning("Producing release archive " + release.isabelle_archive + " ...") |
325 progress.echo_warning("Producing release archive " + release.isabelle_archive + " ...") |
326 |
326 |
327 Isabelle_System.mkdirs(release.dist_dir) |
327 Isabelle_System.make_directory(release.dist_dir) |
328 |
328 |
329 if (release.isabelle_dir.is_dir) |
329 if (release.isabelle_dir.is_dir) |
330 error("Directory " + release.isabelle_dir + " already exists") |
330 error("Directory " + release.isabelle_dir + " already exists") |
331 |
331 |
332 |
332 |
747 release.dist_dir + Path.explode(release.dist_name + "_" + Platform.family + ".tar.gz") |
747 release.dist_dir + Path.explode(release.dist_name + "_" + Platform.family + ".tar.gz") |
748 execute_tar(tmp_dir, "-xzf " + File.bash_path(bundle)) |
748 execute_tar(tmp_dir, "-xzf " + File.bash_path(bundle)) |
749 |
749 |
750 val other_isabelle = release.other_isabelle(tmp_dir) |
750 val other_isabelle = release.other_isabelle(tmp_dir) |
751 |
751 |
752 Isabelle_System.mkdirs(other_isabelle.etc) |
752 Isabelle_System.make_directory(other_isabelle.etc) |
753 File.write(other_isabelle.etc_preferences, "ML_system_64 = true\n") |
753 File.write(other_isabelle.etc_preferences, "ML_system_64 = true\n") |
754 |
754 |
755 other_isabelle.bash("bin/isabelle build -f -j " + parallel_jobs + |
755 other_isabelle.bash("bin/isabelle build -f -j " + parallel_jobs + |
756 " -o browser_info -o document=pdf -o document_variants=document:outline=/proof,/ML" + |
756 " -o browser_info -o document=pdf -o document_variants=document:outline=/proof,/ML" + |
757 " -o system_heaps -c -a -d '~~/src/Benchmarks'", echo = true).check |
757 " -o system_heaps -c -a -d '~~/src/Benchmarks'", echo = true).check |