equal
deleted
inserted
replaced
192 |
192 |
193 |
193 |
194 /* make distribution */ |
194 /* make distribution */ |
195 |
195 |
196 if (release.isabelle_archive.is_file) { |
196 if (release.isabelle_archive.is_file) { |
197 progress.echo("### Release archive already exists: " + release.isabelle_archive.implode) |
197 progress.echo("### Release archive already exists: " + release.isabelle_archive) |
198 |
198 |
199 val archive_ident = |
199 val archive_ident = |
200 Isabelle_System.with_tmp_dir("build_release")(tmp_dir => |
200 Isabelle_System.with_tmp_dir("build_release")(tmp_dir => |
201 { |
201 { |
202 val getsettings = Path.explode(release.dist_name + "/" + getsettings_file) |
202 val getsettings = Path.explode(release.dist_name + "/" + getsettings_file) |
211 error("Mismatch of release identification " + release.ident + |
211 error("Mismatch of release identification " + release.ident + |
212 " vs. archive " + archive_ident) |
212 " vs. archive " + archive_ident) |
213 } |
213 } |
214 } |
214 } |
215 else { |
215 else { |
216 progress.echo("### Producing release archive " + release.isabelle_archive.implode + " ...") |
216 progress.echo("### Producing release archive " + release.isabelle_archive + " ...") |
217 |
217 |
218 Isabelle_System.mkdirs(release.dist_dir) |
218 Isabelle_System.mkdirs(release.dist_dir) |
219 |
219 |
220 if (release.isabelle_dir.is_dir) |
220 if (release.isabelle_dir.is_dir) |
221 error("Directory " + release.isabelle_dir + " already exists") |
221 error("Directory " + release.isabelle_dir + " already exists") |
322 for (bundle_info <- bundle_infos) { |
322 for (bundle_info <- bundle_infos) { |
323 val bundle = |
323 val bundle = |
324 (if (remote_mac.isEmpty) bundle_info.fallback else None) getOrElse bundle_info.main |
324 (if (remote_mac.isEmpty) bundle_info.fallback else None) getOrElse bundle_info.main |
325 val bundle_archive = release.dist_dir + Path.explode(bundle) |
325 val bundle_archive = release.dist_dir + Path.explode(bundle) |
326 if (bundle_archive.is_file) |
326 if (bundle_archive.is_file) |
327 progress.echo("### Application bundle already exists: " + bundle_archive.implode) |
327 progress.echo("### Application bundle already exists: " + bundle_archive) |
328 else { |
328 else { |
329 progress.echo( |
329 progress.echo( |
330 "\nApplication bundle for " + bundle_info.platform_family + ": " + bundle_archive.implode) |
330 "\nApplication bundle for " + bundle_info.platform_family + ": " + bundle_archive) |
331 progress.bash( |
331 progress.bash( |
332 "isabelle makedist_bundle " + File.bash_path(release.isabelle_archive) + |
332 "isabelle makedist_bundle " + File.bash_path(release.isabelle_archive) + |
333 " " + Bash.string(bundle_info.platform_family) + |
333 " " + Bash.string(bundle_info.platform_family) + |
334 (if (remote_mac == "") "" else " " + Bash.string(remote_mac)), |
334 (if (remote_mac == "") "" else " " + Bash.string(remote_mac)), |
335 echo = true).check |
335 echo = true).check |
365 |
365 |
366 /* HTML library */ |
366 /* HTML library */ |
367 |
367 |
368 if (build_library) { |
368 if (build_library) { |
369 if (release.isabelle_library_archive.is_file) { |
369 if (release.isabelle_library_archive.is_file) { |
370 progress.echo( |
370 progress.echo("### Library archive already exists: " + release.isabelle_library_archive) |
371 "### Library archive already exists: " + release.isabelle_library_archive.implode) |
|
372 } |
371 } |
373 else { |
372 else { |
374 Isabelle_System.with_tmp_dir("build_release")(tmp_dir => |
373 Isabelle_System.with_tmp_dir("build_release")(tmp_dir => |
375 { |
374 { |
376 val name = release.dist_name |
375 val name = release.dist_name |