build/deb: fix deb.control for ethereum-swarm (#1414)

* build/deb: fix deb.control for ethereum-swarm

* build: env.sh fix
This commit is contained in:
Anton Evangelatov
2019-06-03 15:26:37 +02:00
committed by Rafael Matias
parent 809165fc5e
commit 1c8c8bac45
8 changed files with 8 additions and 70 deletions

View File

@ -10,11 +10,11 @@ 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
ethdir="$workspace/src/github.com/ethersphere"
if [ ! -L "$ethdir/swarm" ]; then
mkdir -p "$ethdir"
cd "$ethdir"
ln -s ../../../../../. go-ethereum
ln -s ../../../../../. swarm
cd "$root"
fi
@ -23,8 +23,8 @@ GOPATH="$workspace"
export GOPATH
# Run the command inside the workspace.
cd "$ethdir/go-ethereum"
PWD="$ethdir/go-ethereum"
cd "$ethdir/swarm"
PWD="$ethdir/swarm"
# Launch the arguments with the configured environment.
exec "$@"