author | wenzelm |
Tue, 09 Oct 2018 13:06:39 +0200 | |
changeset 69139 | 4f3d93f0ba94 |
parent 69138 | 9e12bbe91471 |
child 69140 | f2d233f6356c |
--- a/lib/Tools/ocaml_setup Tue Oct 09 09:53:13 2018 +0200 +++ b/lib/Tools/ocaml_setup Tue Oct 09 13:06:39 2018 +0200 @@ -4,4 +4,9 @@ # # DESCRIPTION: OCaml setup via OPAM -isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION" "$@" +if [ -d "$ISABELLE_OPAM_ROOT" ] +then + isabelle_opam switch "$ISABELLE_OCAML_VERSION" +else + isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION" +fi