# abort script on any command that exit with a non zero value
set -e

tar xzf erlang/otp_src_R15B01.tar.gz

export HOME=/home/vcap

(
  cd otp_src_R15B01
  ./configure --prefix=${BOSH_INSTALL_TARGET} --without-termcap
  make -j 3
  make install
)
