lib/scripts/ocamlfind
author Fabian Huch <huch@in.tum.de>
Sat, 01 Feb 2025 22:30:09 +0100
changeset 82041 e7acf8c4572e
parent 69948 a591de179931
permissions -rwxr-xr-x
clarified option name;

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