mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
ensure mkdir build/bin -- for compatibility with MSYS2/MINGW64
if not exist $root/build/bin then mkdir
This commit is contained in:
parent
32648505f4
commit
5d5ea2ffd0
1 changed files with 9 additions and 3 deletions
12
build/env.sh
12
build/env.sh
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue