mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
5b5cae693f
Events with just 1 argument fail before this change Former-commit-id: 69cbb51c56054208417e464dc6e46a94ccb3bbeb [formerly fbb03244929beb0ce8f9c607ce33d107e8319b89] Former-commit-id: 984154c1ba79f1fe8bf0106a604b2765ea312079
31 lines
646 B
Bash
Executable File
31 lines
646 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ! -f "build/env.sh" ]; then
|
|
echo "$0 must be run from the root of the repository."
|
|
exit 2
|
|
fi
|
|
|
|
# Create fake Go workspace if it doesn't exist yet.
|
|
workspace="$PWD/build/_workspace"
|
|
root="$PWD"
|
|
ethdir="$workspace/src/github.com/ethereum"
|
|
if [ ! -L "$ethdir/go-ethereum" ]; then
|
|
mkdir -p "$ethdir"
|
|
cd "$ethdir"
|
|
ln -s ../../../../../. go-ethereum
|
|
cd "$root"
|
|
fi
|
|
|
|
# Set up the environment to use the workspace.
|
|
GOPATH="$workspace"
|
|
export GOPATH
|
|
|
|
# Run the command inside the workspace.
|
|
cd "$ethdir/go-ethereum"
|
|
PWD="$ethdir/go-ethereum"
|
|
|
|
# Launch the arguments with the configured environment.
|
|
exec "$@"
|