10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-25 22:52:15 +02:00

Added ocaml/opam install in setup_environment.sh

This commit is contained in:
Anthony Scemama 2014-10-07 14:45:44 +02:00
parent 0a8ebcfbd3
commit 287a2b1ef3
4 changed files with 19 additions and 1 deletions

View File

@ -27,3 +27,5 @@ doc:
src: irpf90 EZFIO
export QPACKAGE_ROOT=$$PWD ; \
$(MAKE) -C src

View File

@ -30,10 +30,14 @@ executables: $(ALL_EXE)
mv _build/$*.inferred.mli .
%.byte: $(MLFILES) $(MLIFILES)
rm -f -- $*
$(OCAMLBUILD) $*.byte -use-ocamlfind $(PKGS)
ln -s $*.native $*
%.native: $(MLFILES) $(MLIFILES)
rm -f -- $*
$(OCAMLBUILD) $*.native -use-ocamlfind $(PKGS)
ln -s $*.native $*
ezfio.ml: ${QPACKAGE_ROOT}/EZFIO/Ocaml/ezfio.ml
cp ${QPACKAGE_ROOT}/EZFIO/Ocaml/ezfio.ml .

View File

@ -1,3 +1,3 @@
true: package(core)
true: package(core,async)
true: thread

View File

@ -39,3 +39,15 @@ then
echo "Error in IRPF90 installation"
exit 1
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
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