val foiltex_dir = File.get_dir(download_dir, title = download_url)
/* component */
val README = Path.explode("README") val version = { val Version = """^.*Instructions for FoilTeX Version\s*(.*)$""".r
split_lines(File.read(foiltex_dir + README))
.collectFirst({ case Version(v) => v })
.getOrElse(error("Failed to detect version in " + README))
}
val component = "foiltex-" + version val component_dir =
Components.Directory(target_dir + Path.basic(component)).create(progress = progress)
val isabelle_tool =
Isabelle_Tool("component_foiltex", "build component for FoilTeX",
Scala_Project.here,
{ args => var target_dir = Path.current var download_url = default_url
val getopts = Getopts("""
Usage: isabelle component_foiltex [OPTIONS]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.