mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Merge 4207f4b6c5 into 881bdc289f
This commit is contained in:
commit
61f3de25ae
1 changed files with 11 additions and 5 deletions
16
build/env.sh
16
build/env.sh
|
|
@ -2,19 +2,25 @@
|
|||
|
||||
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 [ ! -e "$root/build/bin" ]; then
|
||||
mkdir -p "$root/build/bin"
|
||||
fi
|
||||
|
||||
# Create fake Go workspace if it doesn't exist yet.
|
||||
workspace="$PWD/build/_workspace"
|
||||
root="$PWD"
|
||||
workspace="$root/../_go_build/_workspace"
|
||||
ethdir="$workspace/src/github.com/ethereum"
|
||||
if [ ! -L "$ethdir/go-ethereum" ]; then
|
||||
if [ ! -e "$ethdir/go-ethereum" ]; then
|
||||
mkdir -p "$ethdir"
|
||||
cd "$ethdir"
|
||||
ln -s ../../../../../. go-ethereum
|
||||
ln -s "$root" go-ethereum
|
||||
cd "$root"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue