--- a/src/Pure/Admin/build_eptcs.scala Sun Nov 13 21:59:19 2022 +0100
+++ b/src/Pure/Admin/build_eptcs.scala Sun Nov 20 23:37:54 2022 +0100
@@ -29,8 +29,8 @@
/* component */
val component = "eptcs-" + version
- val component_dir = Isabelle_System.new_directory(target_dir + Path.basic(component))
- progress.echo("Component " + component_dir)
+ val component_dir =
+ Components.Directory.create(target_dir + Path.basic(component), progress = progress)
/* download */
@@ -40,14 +40,13 @@
Isabelle_System.with_tmp_file("download", ext = "zip") { download_file =>
Isabelle_System.download_file(download_url, download_file, progress = progress)
Isabelle_System.bash("unzip -x " + File.bash_path(download_file),
- cwd = component_dir.file).check
+ cwd = component_dir.path.file).check
}
/* settings */
- val etc_dir = Isabelle_System.make_directory(component_dir + Path.basic("etc"))
- File.write(etc_dir + Path.basic("settings"),
+ File.write(component_dir.settings,
"""# -*- shell-script -*- :mode=shellscript:
ISABELLE_EPTCS_HOME="$COMPONENT"
@@ -56,7 +55,7 @@
/* README */
- File.write(component_dir + Path.basic("README"),
+ File.write(component_dir.README,
"""This is the EPTCS style from
""" + download_url + """