[build] fix jenkins build issue

Signed-off-by: Leo Chen <leo@harmony.one>
pull/607/head
Leo Chen 6 years ago
parent 0e614419ab
commit 1142356c4f
  1. 10
      scripts/setup_bls_build_flags.sh

@ -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"}

Loading…
Cancel
Save