author | wenzelm |
Thu, 21 Mar 2019 13:34:37 +0100 | |
changeset 69936 | 772bdd1ed843 |
parent 69928 | 3ed262d72468 |
child 69938 | 564985d6867e |
permissions | -rwxr-xr-x |
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 |
||
69924
512ac874bb9d
more robust: allow empty root (e.g. via symlink);
wenzelm
parents:
69911
diff
changeset
|
9 |
if [ -e "$ISABELLE_OPAM_ROOT/config" ] |
69139 | 10 |
then |
69936 | 11 |
isabelle_opam switch create "ocaml-base-compiler.$ISABELLE_OCAML_VERSION" |
69139 | 12 |
else |
69936 | 13 |
isabelle_opam init --disable-sandboxing --no-setup --compiler="ocaml-base-compiler.$ISABELLE_OCAML_VERSION" |
69139 | 14 |
fi |
69911 | 15 |
|
69928 | 16 |
isabelle_opam install zarith -y |