2018-12-24 16:03:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-02-27 02:59:56 +00:00
|
|
|
PWD_CMD="pwd"
|
|
|
|
# get native Windows paths on Mingw
|
|
|
|
uname | grep -qi mingw && PWD_CMD="pwd -W"
|
|
|
|
|
2018-12-24 16:03:27 +00:00
|
|
|
rel_path="$(dirname $0)"
|
2019-02-27 02:59:56 +00:00
|
|
|
abs_path="$(cd $rel_path; ${PWD_CMD})"
|
2018-12-24 16:03:27 +00:00
|
|
|
|
2019-02-26 22:13:31 +00:00
|
|
|
# used by libp2p/go-libp2p-daemon
|
|
|
|
export GOPATH="${abs_path}/vendor/go"
|
|
|
|
|
2019-01-09 17:10:26 +00:00
|
|
|
# make it an absolute path, so we can call this script from other dirs
|
2019-02-26 22:13:31 +00:00
|
|
|
export PATH="${abs_path}/vendor/Nim/bin:${GOPATH}/bin:${PATH}"
|
2018-12-24 16:03:27 +00:00
|
|
|
|
2019-01-09 17:10:26 +00:00
|
|
|
# Nimble needs this to be an absolute path
|
2018-12-24 16:03:27 +00:00
|
|
|
export NIMBLE_DIR="${abs_path}/vendor/.nimble"
|
2019-01-09 17:10:26 +00:00
|
|
|
|
|
|
|
# used by nim-beacon-chain/tests/simulation/start.sh
|
2019-01-09 01:05:54 +00:00
|
|
|
export BUILD_OUTPUTS_DIR="${abs_path}/build"
|
2018-12-24 16:03:27 +00:00
|
|
|
|
|
|
|
exec "$@"
|
2019-02-16 21:23:17 +00:00
|
|
|
|