lib/Tools/ocaml_setup
author wenzelm
Thu, 21 Mar 2019 16:16:43 +0100
changeset 69942 2c48be88f847
parent 69938 564985d6867e
child 69948 a591de179931
permissions -rwxr-xr-x
further robustification (amending 772bdd1ed843);

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

set -e

if [ -e "$ISABELLE_OPAM_ROOT/config" ]
then
  isabelle_opam switch reinstall -y "$ISABELLE_OCAML_VERSION"
else
  isabelle_opam init -y --disable-sandboxing --no-setup --compiler="$ISABELLE_OCAML_VERSION"
fi

isabelle_opam install zarith -y