Ocaml setup environment

This commit is contained in:
Anthony Scemama 2014-10-07 15:25:21 +02:00
parent 287a2b1ef3
commit 5d72e3d4ff
1 changed files with 4 additions and 3 deletions

View File

@ -42,12 +42,13 @@ fi
# Ocaml installation
make -C ocaml qp_create_ezfio_from_xyz.native
if [[ $? -ne 0 ]] then
curl -kL https://raw.github.com/hcarty/ocamlbrew/master/ocamlbrew-install | env OCAMLBREW_FLAGS="-r" bash > ocaml_install.log
if [[ $? -ne 0 ]]
then
scripts/fetch_from_web.py "https://raw.github.com/hcarty/ocamlbrew/master/ocamlbrew-install" ocamlbrew-install.sh
cat < ocamlbrew-install.sh | env OCAMLBREW_FLAGS="-r" bash > ocaml_install.log
grep "source " install.log | grep "etc/ocamlbrew.bashrc" >> quantum_package.rc
source quantum_package.rc
echo Y | opam install core async
fi
make -C ocaml qp_compilation_test.byte