lib/Tools/ocaml_setup
author wenzelm
Tue, 04 Jun 2019 19:51:45 +0200
changeset 70324 005c1cdbfd3f
parent 69948 a591de179931
child 73405 8510c6e98228
permissions -rwxr-xr-x
backout 34bc296374ee -- affects the raw_induct rule, e.g. relevant for AFP/Imperative_Insertion_Sort;

#!/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