add build-libbitcoind.sh.

This commit is contained in:
Christopher Jeffrey 2014-12-06 16:43:53 -08:00
parent 0d756bf05f
commit 6e0798f1bc
1 changed files with 24 additions and 0 deletions

24
build-libbitcoind.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
btc_dir=$(test -n "$1" && echo "$1" || echo "${HOME}/bitcoin")
os_dir=$(dirname "$(./platform/os.sh)")
shift
./patch-bitcoin.sh "$btc_dir" || exit 1
cd "$btc_dir" || exit 1
./autogen.sh || exit 1
./configure --enable-daemonlib --with-incompatible-bdb "$@" || exit 1
make || exit 1
cp src/libbitcoind.so "${os_dir}/libbitcoind.so" || exit 1
cd "$os_dir" || exit 1
rm -f xaa xab
split libbitcoind.so -n 2 || exit 1
echo 'Build finished successfully.'
exit 0