2018-12-24 17:03:27 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
rel_path="$(dirname $0)"
|
|
|
|
abs_path="$(cd $rel_path; pwd)"
|
|
|
|
|
2019-01-09 18:10:26 +01:00
|
|
|
# make it an absolute path, so we can call this script from other dirs
|
2018-12-24 17:03:27 +01:00
|
|
|
export PATH="${abs_path}/vendor/Nim/bin:$PATH"
|
|
|
|
|
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
|
|
|
|