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
ec-build-remote
#! /bin/bash

# --------------------------------------------------------------------
function check_cmd {
  if ! type -P "$1" >/dev/null 2>&1; then
    echo "missing program: $1. install it first" >&2
    exit 1
  fi
}

check_cmd git
check_cmd m4
check_cmd autoconf
check_cmd gcc
check_cmd g++
check_cmd curl

# --------------------------------------------------------------------
if [ -e easycrypt ]; then
  echo "a file or directory [easycrypt] already exists" >&2
  echo "remove it first and restart this script" >&2
  exit 1
fi

# --------------------------------------------------------------------
set -ex

git clone http://ci.easycrypt.info/easycrypt.git easycrypt

make -C easycrypt toolchain provers
$(easycrypt/scripts/active-toolchain.sh)
make -C easycrypt
back to top