lib/scripts/ocamlexec
changeset 69924 512ac874bb9d
parent 69906 55534affe445
equal deleted inserted replaced
69923:cd8b6f32ed79 69924:512ac874bb9d
     2 #
     2 #
     3 # Author: Makarius; Florian Haftmann
     3 # Author: Makarius; Florian Haftmann
     4 #
     4 #
     5 # Invoke command in OCaml environment setup by "opam".
     5 # Invoke command in OCaml environment setup by "opam".
     6 
     6 
     7 if [ -d "$ISABELLE_OPAM_ROOT" ]
     7 if [ -e "$ISABELLE_OPAM_ROOT/config" ]
     8 then
     8 then
     9   isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- "$@"
     9   isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- "$@"
    10 else
    10 else
    11   echo "Cannot execute: missing Isabelle OCaml setup" >&2
    11   echo "Cannot execute: missing Isabelle OCaml setup" >&2
    12   exit 127
    12   exit 127