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