changeset 69268 | c1a27fce2076 |
parent 69261 | a41f49148525 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/scripts/ocaml Thu Nov 08 16:18:12 2018 +0100 @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# +# Author: Makarius +# +# Invoke ocaml via "opam". + +if [ -d "$ISABELLE_OPAM_ROOT" ] +then + isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- ocaml "$@" +else + echo "Cannot execute ocaml: missing Isabelle OCaml setup" >&2 + exit 127 +fi