https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: a79f9aeb6de046ca12210d26317fab59c175d0dd authored by Pierre-Yves Strub on 08 July 2014, 09:43:21 UTC
Fix bug w.r.t. _tools presence detection.
Tip revision: a79f9ae
activate-toolchain.sh
#! /bin/bash

# --------------------------------------------------------------------
: ${OVERSION=4.01.0}
: ${DEST="$(dirname $0)/../_tools"}

# --------------------------------------------------------------------
target="${DEST}/ocaml-${OVERSION}/etc/ocamlbrew.bashrc"

if [ ! -e "$target" ]; then
  cat <<__EOF__ >&2
Install the EasyCrypt toolchain first ([make toolchain])
__EOF__
  exit 1
fi

# --------------------------------------------------------------------
echo ". ${target}"
back to top