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:
committed by
Rafael Matias
parent
809165fc5e
commit
1c8c8bac45
10
build/env.sh
10
build/env.sh
@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user