lib/Tools/ocaml_setup
author wenzelm
Tue, 09 Oct 2018 13:06:39 +0200
changeset 69139 4f3d93f0ba94
parent 69135 be20f5f6feb9
child 69149 8c501c406d24
permissions -rwxr-xr-x
allow to switch ISABELLE_OCAML_VERSION later on; simplified command-line: no user args;

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

if [ -d "$ISABELLE_OPAM_ROOT" ]
then
  isabelle_opam switch "$ISABELLE_OCAML_VERSION"
else
  isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION"
fi