def show_settings(): List[String] = for (a <- List("ISABELLE_CADDY_SETUP_VERSION", "ISABELLE_CADDY_SETUP_MODULES")) yield { val b = Isabelle_System.getenv(a)
a + "=" + quote(b)
}
if [ -n "$ISABELLE_WINDOWS_PLATFORM64" -a -d "$ISABELLE_CADDY_HOME/$ISABELLE_WINDOWS_PLATFORM64" ]; then
ISABELLE_CADDY="$ISABELLE_CADDY_HOME/$ISABELLE_WINDOWS_PLATFORM64/caddy.exe"
elif [ -n "$ISABELLE_APPLE_PLATFORM64" -a -d "$ISABELLE_CADDY_HOME/$ISABELLE_APPLE_PLATFORM64" ]; then
ISABELLE_CADDY="$ISABELLE_CADDY_HOME/$ISABELLE_APPLE_PLATFORM64/caddy"
elif [ -d "$ISABELLE_CADDY_HOME/$ISABELLE_PLATFORM64" ]; then
ISABELLE_CADDY="$ISABELLE_CADDY_HOME/$ISABELLE_PLATFORM64/caddy"
fi """)
for (old <- proper_string(Isabelle_System.getenv("ISABELLE_CADDY_HOME"))) {
Components.update_components(false, Path.explode(old))
}
val isabelle_tool =
Isabelle_Tool("caddy_setup", "dynamic setup of Caddy component", Scala_Project.here,
{ args => var target_dir = default_target_dir var xcaddy_url = default_xcaddy_url var xcaddy_version = default_xcaddy_version var caddy_modules = default_caddy_modules var caddy_version = default_caddy_version var force = false var verbose = false
val getopts = Getopts("""
Usage: isabelle caddy_setup [OPTIONS]
Options are:
-D DIR target directory (default ".")
-N MODULES non-standard modules for caddy
(default: ISABELLE_CADDY_SETUP_MODULES="""" + default_caddy_modules + """")
-U URL download URL for xcaddy (default: """" + default_xcaddy_url + """")
-V VERSION version for caddy
(default: ISABELLE_CADDY_SETUP_VERSION="""" + default_caddy_version + """")
-W VERSION version for xcaddy (default: """" + default_xcaddy_version + """")
-f force fresh installation of specified platforms
-v verbose
Build the Caddy webserver via xcaddy and configure it as Isabelle
component. See also https://github.com/caddyserver/xcaddy""", "D:" -> (arg => target_dir = Path.explode(arg)), "N:" -> (arg => caddy_modules = arg), "U:" -> (arg => xcaddy_url = arg), "V:" -> (arg => caddy_version = arg), "W:" -> (arg => xcaddy_version = arg), "f" -> (_ => force = true), "v" -> (_ => verbose = true))
val more_args = getopts(args) if (more_args.nonEmpty) getopts.usage()
val progress = new Console_Progress(verbose = verbose)
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.