|
|
@ -1,8 +1,18 @@ |
|
|
|
# no shebang; to be sourced from other scripts |
|
|
|
# no shebang; to be sourced from other scripts |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unset -v progdir |
|
|
|
|
|
|
|
case "${0}" in |
|
|
|
|
|
|
|
*/*) progdir="${0%/*}";; |
|
|
|
|
|
|
|
*) progdir=.;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
unset -v gopath |
|
|
|
unset -v gopath |
|
|
|
gopath=$(go env GOPATH) |
|
|
|
gopath=$(go env GOPATH) |
|
|
|
|
|
|
|
# HMY_PATH is the common root directory of all harmony repos |
|
|
|
HMY_PATH="${gopath%%:*}/src/github.com/harmony-one" |
|
|
|
HMY_PATH="${gopath%%:*}/src/github.com/harmony-one" |
|
|
|
|
|
|
|
if [ ! -d $HMY_PATH ]; then |
|
|
|
|
|
|
|
HMY_PATH=$(realpath $progdir/../..) |
|
|
|
|
|
|
|
fi |
|
|
|
: ${OPENSSL_DIR="/usr/local/opt/openssl"} |
|
|
|
: ${OPENSSL_DIR="/usr/local/opt/openssl"} |
|
|
|
: ${MCL_DIR="${HMY_PATH}/mcl"} |
|
|
|
: ${MCL_DIR="${HMY_PATH}/mcl"} |
|
|
|
: ${BLS_DIR="${HMY_PATH}/bls"} |
|
|
|
: ${BLS_DIR="${HMY_PATH}/bls"} |
|
|
|