Browse Source

Check required binaries are present.

cl-refactor
Tim Hughes 11 years ago
parent
commit
025a27ef3f
  1. 13
      windows/bootstrap.sh

13
windows/bootstrap.sh

@ -7,6 +7,19 @@
# - Visual Studio Express 2013 for Desktop # - Visual Studio Express 2013 for Desktop
# - On PATH: bash, git, git-svn, curl, sed, 7z # - 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 if [[ ! $@ ]] || [ $1 == "fetch" ]; then
# fetch ethereum (develop branch) # fetch ethereum (develop branch)
if [ ! -d cpp-ethereum ]; then if [ ! -d cpp-ethereum ]; then

Loading…
Cancel
Save