From 5d5ea2ffd0d31ef9df83276e893def93ff30c850 Mon Sep 17 00:00:00 2001 From: Jason Coombs Date: Thu, 30 Jun 2016 16:08:07 -1000 Subject: [PATCH] ensure mkdir build/bin -- for compatibility with MSYS2/MINGW64 if not exist $root/build/bin then mkdir --- build/env.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build/env.sh b/build/env.sh index c080689f6c..ff8eb677d0 100755 --- a/build/env.sh +++ b/build/env.sh @@ -2,14 +2,20 @@ set -e -if [ ! -f "build/env.sh" ]; then +root="$PWD" + +if [ ! -f "$root/build/env.sh" ]; then echo "$0 must be run from the root of the repository." exit 2 fi +# Create build/bin if it doesn't exist yet. +if [ ! -L "$root/build/bin" ]; then + mkdir -p "$root/build/bin" +fi + # Create fake Go workspace if it doesn't exist yet. -workspace="$PWD/../_go_build/_workspace" -root="$PWD" +workspace="$root/../_go_build/_workspace" ethdir="$workspace/src/github.com/ethereum" if [ ! -L "$ethdir/go-ethereum" ]; then mkdir -p "$ethdir"