mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
- Solidity Upgraded up to v0.8.0 - Fixed and Added eth_chainId - Fix error in TransactionRecipet - Reward halving issue fixed
30 lines
644 B
Bash
Executable file
30 lines
644 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/XDPoSChain"
|
|
if [ ! -L "$ethdir/XDPoSChain" ]; then
|
|
mkdir -p "$ethdir"
|
|
cd "$ethdir"
|
|
ln -s ../../../../../. XDPoSChain
|
|
cd "$root"
|
|
fi
|
|
|
|
# Set up the environment to use the workspace.
|
|
GOPATH="$workspace"
|
|
export GOPATH
|
|
|
|
# Run the command inside the workspace.
|
|
cd "$ethdir/XDPoSChain"
|
|
PWD="$ethdir/XDPoSChain"
|
|
|
|
# Launch the arguments with the configured environment.
|
|
exec "$@"
|