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