document env var

This commit is contained in:
Ștefan Talpalaru 2019-01-09 18:10:26 +01:00 committed by zah
parent e267254b4c
commit a2a11ed7aa
1 changed files with 4 additions and 2 deletions

6
env.sh
View File

@ -3,11 +3,13 @@
rel_path="$(dirname $0)" rel_path="$(dirname $0)"
abs_path="$(cd $rel_path; pwd)" abs_path="$(cd $rel_path; pwd)"
#- make it an absolute path, so we can call this script from other dirs # make it an absolute path, so we can call this script from other dirs
export PATH="${abs_path}/vendor/Nim/bin:$PATH" export PATH="${abs_path}/vendor/Nim/bin:$PATH"
#- Nimble needs this to be an absolute path # Nimble needs this to be an absolute path
export NIMBLE_DIR="${abs_path}/vendor/.nimble" export NIMBLE_DIR="${abs_path}/vendor/.nimble"
# used by nim-beacon-chain/tests/simulation/start.sh
export BUILD_OUTPUTS_DIR="${abs_path}/build" export BUILD_OUTPUTS_DIR="${abs_path}/build"
exec "$@" exec "$@"