equal
deleted
inserted
replaced
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 |