| git.druid.rocks | index | druid520 | ports | ports/ | languages/ | ocaml/ | add.sh |
ports/languages/ocaml/add.sh
set -e
git clone --depth 1 https://github.com/ocaml/ocaml.git
cd ocaml
./configure --prefix=$MP_PREFIX/ocaml-git
make -j$MP_JOBS
make install
mkdir -p $MP_PREFIX/bin
ln -sf $MP_PREFIX/ocaml-git/bin/ocaml $MP_PREFIX/bin/ocaml
ln -sf $MP_PREFIX/ocaml-git/bin/ocamlc $MP_PREFIX/bin/ocamlc
ln -sf $MP_PREFIX/ocaml-git/bin/ocamlopt $MP_PREFIX/bin/ocamlopt
make clean || true