10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-12-22 12:23:30 +01:00

Fix ocaml install script

This commit is contained in:
Anthony Scemama 2020-11-02 18:43:49 +01:00
parent 82ec849839
commit ffadb3beef

View File

@ -4,7 +4,7 @@ set -u
set -e set -e
cd .. ; QMCCHEM_PATH="$PWD" ; cd - cd .. ; QMCCHEM_PATH="$PWD" ; cd -
PACKAGES="cryptokit ocamlfind sexplib.v0.11.0 ppx_sexp_conv ppx_deriving" PACKAGES="cryptokit ocamlbuild getopt ocamlfind sexplib.v0.11.0 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 () {
@ -82,7 +82,7 @@ then
fi fi
source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true
${QMCCHEM_PATH}/bin/opam init --verbose --yes --comp=4.07.1 --disable-sandboxing ${QMCCHEM_PATH}/bin/opam init --verbose --yes --comp=4.10.1 --disable-sandboxing
touch "${QMCCHEM_PATH}"/bin/opam touch "${QMCCHEM_PATH}"/bin/opam
eval $(${QMCCHEM_PATH}/bin/opam env) eval $(${QMCCHEM_PATH}/bin/opam env)