lib/Tools/ocaml_setup
author wenzelm
Wed, 27 Feb 2019 16:28:46 +0100
changeset 69844 b21ddfa7042b
parent 69500 db001bc11855
child 69911 036037573080
permissions -rwxr-xr-x
clarified quasi_consolidated status after 5f160df596c1 -- relevant for headless PIDE session (e.g. "isabelle dump");

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: setup OCaml via OPAM

if [ -d "$ISABELLE_OPAM_ROOT" ]
then
  isabelle_opam switch "$ISABELLE_OCAML_VERSION"
else
  isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION"
fi