add build comments.

This commit is contained in:
Christopher Jeffrey 2014-12-07 00:56:43 -08:00
parent 90888fabf0
commit 44d2c978c7
1 changed files with 10 additions and 0 deletions

View File

@ -9,10 +9,12 @@ if test -e "${os_dir}/libbitcoind.so"; then
echo 'libbitcoind.so ready.' echo 'libbitcoind.so ready.'
exit 0 exit 0
fi fi
rm -f "${os_dir}/libbitcoind.so"
fi fi
if test -n "$1"; then if test -n "$1"; then
if test "$1" = 'remote'; then if test "$1" = 'remote'; then
echo 'git clone'
git clone git://github.com/bitcoin/bitcoin.git libbitcoind || exit 1 git clone git://github.com/bitcoin/bitcoin.git libbitcoind || exit 1
btc_dir="${cur_dir}/libbitcoind" btc_dir="${cur_dir}/libbitcoind"
else else
@ -31,6 +33,9 @@ else
fi fi
fi fi
echo "Found BTC directory: $btc_dir"
echo './patch-bitcoin.sh' "$btc_dir"
./patch-bitcoin.sh "$btc_dir" || exit 1 ./patch-bitcoin.sh "$btc_dir" || exit 1
cd "$btc_dir" || exit 1 cd "$btc_dir" || exit 1
@ -50,14 +55,19 @@ if test $bdb_compat -eq 0; then
set -- "--with-incompatible-bdb" "$@" set -- "--with-incompatible-bdb" "$@"
fi fi
echo './autogen.sh'
./autogen.sh || exit 1 ./autogen.sh || exit 1
if test -n "$1"; then if test -n "$1"; then
echo './configure --enable-daemonlib' "$@"
./configure --enable-daemonlib "$@" || exit 1 ./configure --enable-daemonlib "$@" || exit 1
else else
echo './configure --enable-daemonlib'
./configure --enable-daemonlib || exit 1 ./configure --enable-daemonlib || exit 1
fi fi
echo 'make'
make || exit 1 make || exit 1
echo 'Copying libbitcoind.so to its appropriate location.'
cp src/libbitcoind.so "${os_dir}/libbitcoind.so" || exit 1 cp src/libbitcoind.so "${os_dir}/libbitcoind.so" || exit 1
cd "$cur_dir" cd "$cur_dir"