Adhoc command-line tool replaces old options
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Makarius Wenzel 2022-12-02 21:14:55 +01:00
parent b95826962f
commit d7fb39d7eb
2 changed files with 12 additions and 2 deletions

View File

@ -194,8 +194,8 @@ for i in $VARS; do
export "$i"
done
ISABELLE_VERSION="Isabelle$($ISABELLE_TOOL options -g dof_isabelle)"
DOF_VERSION="$($ISABELLE_TOOL options -g dof_version)"
ISABELLE_VERSION="Isabelle$($ISABELLE_TOOL java isabelle.dof.DOF isabelle_version)"
DOF_VERSION="$($ISABELLE_TOOL java isabelle.dof.DOF dof_version)"
ISABELLE_SHORT_VERSION=`echo $ISABELLE_VERSION | sed -e 's/:.*$//'`
ISADOF_TAR="Isabelle_DOF-"$DOF_VERSION"_"$ISABELLE_SHORT_VERSION

View File

@ -65,4 +65,14 @@ object DOF {
val artifact_url: String = "https://" + artifact_host + "/" + artifact_dir
def options(opts: Options): Options = opts + "document_comment_latex"
def main(args: Array[String]): Unit = {
args.toList match {
case List("isabelle_version") => println(isabelle_version)
case List("dof_version") => println(version)
case bad =>
error("Bad Java command-line arguments" +
(if (bad.isEmpty) "" else bad.mkString(":\n", "\n ", "")))
}
}
}