| author | desharna |
| Fri, 21 Mar 2025 15:20:13 +0100 | |
| changeset 82314 | c95eca07f6a0 |
| parent 81825 | c551d4a418b9 |
| permissions | -rwxr-xr-x |
| 69135 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
|
81825
c551d4a418b9
provide less ambitious "isabelle ocaml_setup_base", notably for platforms without gmp-dev;
wenzelm
parents:
73405
diff
changeset
|
5 |
# DESCRIPTION: setup OCaml base compiler 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 |
| 73405 | 16 |
mkdir -p "$ISABELLE_OPAM_ROOT" |
17 |
cd "$ISABELLE_OPAM_ROOT" |
|
| 69942 | 18 |
isabelle_opam init -y --disable-sandboxing --no-setup --compiler="$ISABELLE_OCAML_VERSION" |
| 69139 | 19 |
fi |