lib/scripts/ocamlexec
author haftmann
Sun, 10 Mar 2019 15:16:45 +0000
changeset 69906 55534affe445
child 69924 512ac874bb9d
permissions -rwxr-xr-x
migrated from Nums to Zarith as library for OCaml integer arithmetic

#!/usr/bin/env bash
#
# Author: Makarius; Florian Haftmann
#
# Invoke command in OCaml environment setup by "opam".

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