lib/Tools/ocaml_setup_base
author paulson <lp15@cam.ac.uk>
Fri, 08 Aug 2025 16:46:03 +0100
changeset 82969 dedd9d13c79c
parent 81825 c551d4a418b9
permissions -rwxr-xr-x
Generalised a theorem about Lebesgue integration

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

set -e

if [ -d "$ISABELLE_OPAM_ROOT/$ISABELLE_OCAML_VERSION/bin" ]
then
  isabelle_opam switch -y "$ISABELLE_OCAML_VERSION"
elif [ -e "$ISABELLE_OPAM_ROOT/config" ]
then
  isabelle_opam switch create -y "$ISABELLE_OCAML_VERSION"
else
  mkdir -p "$ISABELLE_OPAM_ROOT"
  cd "$ISABELLE_OPAM_ROOT"
  isabelle_opam init -y --disable-sandboxing --no-setup --compiler="$ISABELLE_OCAML_VERSION"
fi