ensure mkdir build/bin -- for compatibility with MSYS2/MINGW64

if not exist $root/build/bin then mkdir
This commit is contained in:
Jason Coombs 2016-06-30 16:08:07 -10:00 committed by GitHub
parent 32648505f4
commit 5d5ea2ffd0

View file

@ -2,14 +2,20 @@
set -e 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." echo "$0 must be run from the root of the repository."
exit 2 exit 2
fi 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. # Create fake Go workspace if it doesn't exist yet.
workspace="$PWD/../_go_build/_workspace" workspace="$root/../_go_build/_workspace"
root="$PWD"
ethdir="$workspace/src/github.com/ethereum" ethdir="$workspace/src/github.com/ethereum"
if [ ! -L "$ethdir/go-ethereum" ]; then if [ ! -L "$ethdir/go-ethereum" ]; then
mkdir -p "$ethdir" mkdir -p "$ethdir"