lib/scripts/ocamlfind
author desharna
Thu, 14 Oct 2021 15:24:28 +0200
changeset 74512 c434f4e74947
parent 69948 a591de179931
permissions -rwxr-xr-x
merged

#!/usr/bin/env bash
#
# Author: Makarius; Florian Haftmann
#
# Invoke ocamlfind via "opam".

if [ -d "$ISABELLE_OPAM_ROOT/$ISABELLE_OCAML_VERSION/bin" ]
then
  isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- ocamlfind "$@"
else
  echo "Cannot execute ocamlfind: missing Isabelle OCaml setup" >&2
  exit 127
fi