10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-03 12:43:52 +01:00
quantum_package/scripts/qp_upgrade_ocaml.sh
Anthony Scemama 61e65babd3
Fix for #227 (#228)
* Fixes #223

* Upgrade to OCaml 4.06 and Core 0.10

* Fixes #223 (#226) (#61)

* Fixed qp_edit
2018-01-22 02:45:17 +01:00

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"