lib/scripts/ocamlfind
author wenzelm
Fri, 22 Mar 2019 10:36:50 +0100
changeset 70130 a591de179931
parent 70108 110fff287217
permissions -rwxr-xr-x
even more robust and conservative OCaml setup;

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