lib/Tools/ocaml_setup
author wenzelm
Fri, 08 Jan 2021 22:30:32 +0100
changeset 73110 c87ca43ebd3b
parent 69948 a591de179931
child 73405 8510c6e98228
permissions -rwxr-xr-x
avoid rescaled fonts, e.g. dockable buttons on Windows L&F after opening a new view;

#!/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
  isabelle_opam init -y --disable-sandboxing --no-setup --compiler="$ISABELLE_OCAML_VERSION"
fi

isabelle_opam install -y zarith