10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-06-02 03:15:19 +02:00

Update install_ocaml.sh

This commit is contained in:
Anthony Scemama 2020-11-02 22:13:40 +01:00
parent e1a532f578
commit 8313af10ac

View File

@ -4,7 +4,7 @@ set -u
set -e set -e
cd .. ; QMCCHEM_PATH="$PWD" ; cd - cd .. ; QMCCHEM_PATH="$PWD" ; cd -
PACKAGES="cryptokit ocamlbuild getopt ocamlfind sexplib.v0.11.0 ppx_sexp_conv ppx_deriving" PACKAGES="cryptokit ocamlbuild getopt ocamlfind sexplib ppx_sexp_conv ppx_deriving"
# return 0 if program version is equal or greater than check version # return 0 if program version is equal or greater than check version
check_version () { check_version () {
@ -91,7 +91,7 @@ export LD_LIBRARY_PATH="${QMCCHEM_PATH}/lib:${LD_LIBRARY_PATH}"
export LIBRARY_PATH="${QMCCHEM_PATH}/lib:${LIBRARY_PATH}" export LIBRARY_PATH="${QMCCHEM_PATH}/lib:${LIBRARY_PATH}"
export C_INCLUDE_PATH="${QMCCHEM_PATH}/lib:${C_INCLUDE_PATH}" export C_INCLUDE_PATH="${QMCCHEM_PATH}/lib:${C_INCLUDE_PATH}"
set -u set -u
opam install --unlock-base ${PACKAGES} opam install -y --unlock-base ${PACKAGES} || exit 3
rm "${QMCCHEM_PATH}"/install/_build/ocaml.log rm "${QMCCHEM_PATH}"/install/_build/ocaml.log
exit 0 exit 0