From 025a27ef3fdf3b698b1e2906346aa33dba42b370 Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Tue, 25 Feb 2014 16:42:57 +0000 Subject: [PATCH] Check required binaries are present. --- windows/bootstrap.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/windows/bootstrap.sh b/windows/bootstrap.sh index a3d643b53..126889732 100644 --- a/windows/bootstrap.sh +++ b/windows/bootstrap.sh @@ -7,6 +7,19 @@ # - Visual Studio Express 2013 for Desktop # - On PATH: bash, git, git-svn, curl, sed, 7z +error_exit() { + echo $1 1>&2 + exit 1 +} + +for i in python perl curl git sed 7z; do + which $i &>/dev/null || error_exit "Could not find $i on PATH" +done + +if [ ! -d "$VS120COMNTOOLS" ]; then + error_exit "Couldn't find Visual Studio 2013" +fi + if [[ ! $@ ]] || [ $1 == "fetch" ]; then # fetch ethereum (develop branch) if [ ! -d cpp-ethereum ]; then