mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-03 12:43:52 +01:00
61e65babd3
* Fixes #223 * Upgrade to OCaml 4.06 and Core 0.10 * Fixes #223 (#226) (#61) * Fixed qp_edit
20 lines
450 B
Bash
Executable File
20 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OCAML_VERSION="4.06.0"
|
|
PACKAGES="core.v0.10.0 cryptokit ocamlfind sexplib.v0.10.0 ZMQ ppx_sexp_conv ppx_deriving"
|
|
|
|
if [[ -z ${QP_ROOT} ]]
|
|
then
|
|
print "The QP_ROOT environment variable is not set."
|
|
print "Please reload the quantum_package.rc file."
|
|
exit -1
|
|
fi
|
|
|
|
cd $QP_ROOT/ocaml
|
|
opam update
|
|
opam switch ${OCAML_VERSION}
|
|
eval `opam config env`
|
|
opam install -y ${PACKAGES} || echo "Upgrade failed. You can try running
|
|
configure ; $0"
|
|
|