| author | nipkow | 
| Fri, 07 Feb 2025 21:27:11 +0100 | |
| changeset 82102 | 15261d78d7b5 | 
| 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: 
73405diff
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 |