author | haftmann |
Sun, 10 Mar 2019 15:16:45 +0000 | |
changeset 69906 | 55534affe445 |
child 69924 | 512ac874bb9d |
permissions | -rwxr-xr-x |
69906
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
2 |
# |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
3 |
# Author: Makarius; Florian Haftmann |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
4 |
# |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
5 |
# Invoke command in OCaml environment setup by "opam". |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
6 |
|
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
7 |
if [ -d "$ISABELLE_OPAM_ROOT" ] |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
8 |
then |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
9 |
isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- "$@" |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
10 |
else |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
11 |
echo "Cannot execute: missing Isabelle OCaml setup" >&2 |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
12 |
exit 127 |
55534affe445
migrated from Nums to Zarith as library for OCaml integer arithmetic
haftmann
parents:
diff
changeset
|
13 |
fi |