nimbus-eth1/env.sh

28 lines
697 B
Bash
Raw Normal View History

#!/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"
export GO111MODULE=on
2019-01-09 17:10:26 +00:00
# make it an absolute path, so we can call this script from other dirs
export PATH="${abs_path}/vendor/Nim/bin:${GOPATH}/bin:${PATH}"
2019-01-09 17:10:26 +00:00
# Nimble needs this to be an absolute path
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"
# change the prompt in shells that source this file
export PS1="${PS1%\\\$ } [Nimbus env]\\$ "
exec "$@"