mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-14 06:15:57 +00:00
12d18a1fd6
(with `make V=0 test-libp2p-daemon`)
24 lines
579 B
Bash
Executable File
24 lines
579 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PWD_CMD="pwd"
|
|
# get native Windows paths on Mingw
|
|
uname | grep -qi mingw && PWD_CMD="pwd -W"
|
|
|
|
rel_path="$(dirname $0)"
|
|
abs_path="$(cd $rel_path; ${PWD_CMD})"
|
|
|
|
# used by libp2p/go-libp2p-daemon
|
|
export GOPATH="${abs_path}/vendor/go"
|
|
|
|
# make it an absolute path, so we can call this script from other dirs
|
|
export PATH="${abs_path}/vendor/Nim/bin:${GOPATH}/bin:${PATH}"
|
|
|
|
# Nimble needs this to be an absolute path
|
|
export NIMBLE_DIR="${abs_path}/vendor/.nimble"
|
|
|
|
# used by nim-beacon-chain/tests/simulation/start.sh
|
|
export BUILD_OUTPUTS_DIR="${abs_path}/build"
|
|
|
|
exec "$@"
|
|
|