bitcore-node-zcash/bin/build-bindings

21 lines
364 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
cd "${root_dir}"
debug=
if test x"$1" = x'debug'; then
2015-07-10 07:34:15 -07:00
debug=--debug
cached_file="${root_dir}"/build/Debug/bitcoind.node
else
cached_file="${root_dir}"/build/Release/bitcoind.node
fi
if [ ! -f "${cached_file}" ]; then
node-pre-gyp ${debug} rebuild --fallback-to-build
fi