lib/scripts/ocamlfind
author wenzelm
Wed, 31 Mar 2021 11:24:46 +0200
changeset 73772 d3f2038198ae
parent 70130 a591de179931
permissions -rwxr-xr-x
clarified (again): local tip could be actually more recent;

#!/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