diff --git a/setup_environment.sh b/setup_environment.sh index 8659885a..5b2d8342 100755 --- a/setup_environment.sh +++ b/setup_environment.sh @@ -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