lib/Tools/ocaml_setup
author wenzelm
Sun, 05 Dec 2021 20:17:17 +0100
changeset 74884 229d7ea628c2
parent 73405 8510c6e98228
permissions -rwxr-xr-x
more symbolic latex_output via XML (using YXML within text);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: setup OCaml 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

isabelle_opam install -y zarith