Skip to content

@avsm /ocamlot-deploy.sh
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ocamlot worker setup script
#!/bin/sh -ex
OCAML_BRANCH=4.01
MAKE=make
inst=`pwd`/inst
if [ ! -d inst ]; then
rm -rf opam
git clone git://github.com/OCamlPro/opam
cd opam
./configure --prefix=$inst && $MAKE && $MAKE install
cd ..
fi
export PATH=$inst/bin:$PATH
export OPAMROOT=`pwd`/.opam
export OPAMYES=1
opam init
opam switch 4.01.0beta1
eval `opam config env`
if [ ! -d ocamlot ]; then
git clone git://github.com/ocamllabs/ocamlot
cd ocamlot
mkdir -p state
git fetch
git checkout -b transients origin/transients
./install_deps.sh
oasis setup
$MAKE
cd ..
fi
if [ ! -d ocaml ]; then
git clone git://github.com/ocaml/ocaml
cd ocaml
git checkout $OCAML_BRANCH
cd ..
fi
if [ ! -d worker ]; then
mkdir worker
cd worker
../ocamlot/install_ocaml.sh $OCAML_BRANCH ../ocaml
cd ..
fi
if [ ! -d tmp ]; then
mkdir tmp
fi
export TMPDIR=`pwd`/tmp
cd worker
../ocamlot/start_one_worker.sh https://ocamlot.recoil.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.