if [ -n "$ISABELLE_WINDOWS_PLATFORM64" -a -d "$ISABELLE_GOROOT/$ISABELLE_WINDOWS_PLATFORM64" ]; then
ISABELLE_GOEXE="$ISABELLE_GOROOT/$ISABELLE_WINDOWS_PLATFORM64"
elif [ -n "$ISABELLE_APPLE_PLATFORM64" -a -d "$ISABELLE_GOROOT/$ISABELLE_APPLE_PLATFORM64" ]; then
ISABELLE_GOEXE="$ISABELLE_GOROOT/$ISABELLE_APPLE_PLATFORM64"
elif [ -d "$ISABELLE_GOROOT/$ISABELLE_PLATFORM64" ]; then
ISABELLE_GOEXE="$ISABELLE_GOROOT/$ISABELLE_PLATFORM64"
fi """)
File.write(component_dir.platform_props,
(for ((a, b) <- all_platforms.groupBy(_.family_name).iterator) yield a + " = " + b.flatMap(_.paths).mkString(" ")
).mkString("", "\n", "\n"))
for (old <- proper_string(Isabelle_System.getenv("ISABELLE_GOROOT"))) {
Components.update_components(false, Path.explode(old))
}
val isabelle_tool =
Isabelle_Tool("go_setup", "dynamic setup of Go component", Scala_Project.here,
{ args => var target_dir = default_target_dir var base_url = default_url var version = default_version var force = false var platforms = List(default_platform)
val getopts = Getopts("""
Usage: isabelle go_setup [OPTIONS]
Options are:
-D DIR target directory (default ".")
-U URL download URL (default: """" + default_url + """")
-V VERSION version (default: ISABELLE_GO_SETUP_VERSION=""" + quote(default_version) + """)
-f force fresh installation of specified platforms
-p PLATFORMS comma-separated list of platform specifications: "all" or
as family or formal name (default: """ + quote(default_platform) + """)
Download the Go development environment and configure it as Isabelle
component. See also https://go.dev """, "D:" -> (arg => target_dir = Path.explode(arg)), "U:" -> (arg => base_url = arg), "V:" -> (arg => version = arg), "f" -> (_ => force = true), "p:" -> (arg => platforms = space_explode(',', arg).map(check_platform)))
val more_args = getopts(args) if (more_args.nonEmpty) getopts.usage()
val progress = new Console_Progress()
go_setup(platforms = platforms, base_url = base_url, version = version,
target_dir = target_dir, progress = progress, force = force)
})
}
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.