69135
|
1 |
#!/usr/bin/env bash
|
|
2 |
#
|
|
3 |
# Author: Makarius
|
|
4 |
#
|
69500
|
5 |
# DESCRIPTION: setup OCaml via OPAM
|
69135
|
6 |
|
69911
|
7 |
set -e
|
|
8 |
|
69948
|
9 |
if [ -d "$ISABELLE_OPAM_ROOT/$ISABELLE_OCAML_VERSION/bin" ]
|
69139
|
10 |
then
|
69948
|
11 |
isabelle_opam switch -y "$ISABELLE_OCAML_VERSION"
|
|
12 |
elif [ -e "$ISABELLE_OPAM_ROOT/config" ]
|
|
13 |
then
|
|
14 |
isabelle_opam switch create -y "$ISABELLE_OCAML_VERSION"
|
69139
|
15 |
else
|
69942
|
16 |
isabelle_opam init -y --disable-sandboxing --no-setup --compiler="$ISABELLE_OCAML_VERSION"
|
69139
|
17 |
fi
|
69911
|
18 |
|
69948
|
19 |
isabelle_opam install -y zarith
|