public
Last active

ocamlot worker setup script

  • Download Gist
ocamlot-deploy.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.