Fixed build script.

This commit is contained in:
Chris Kleeschulte 2015-07-07 13:51:11 -04:00
parent 928cbb233e
commit 9fb5ae6cd8
2 changed files with 12 additions and 12 deletions

View File

@ -60,19 +60,15 @@ $full_options
echo 'make V=1' echo 'make V=1'
make V=1 make V=1
ext=$($root_dir/platform/os.sh ext)
echo 'Copying libbitcoind.{so|dylib} to its appropriate location.' echo 'Copying libbitcoind.{so|dylib} to its appropriate location.'
if test -e "${os_dir}/libbitcoind.so" if test -e "${root_dir}/libbitcoind/src/.libs/libbitcoind.${ext}"; then
mv src/libbitcoind.so "${os_dir}/libbitcoind.so.0.0.0" if [ "$ext" = "dylib" ]; then
cd "${os_dir}" cp "${root_dir}/libbitcoind/src/.libs/libbitcoind.0.dylib" "${os_dir}/"
rm libbitcoind.so.0 cp "${root_dir}/libbitcoind/src/.libs/libbitcoind.dylib" "${os_dir}/"
rm libbitcoind.so else
ln -s libbitcoind.so.0.0.0 libbitcoind.so.0 cp "${root_dir}/libbitcoind/src/.libs/libbitcoind.so*" "${os_dir}/"
ln -s libbitcoind.so.0.0.0 libbitcoind.so fi
elif test -e "${os_dir}/libbitcoind.dylib"; then
mv src/libbitcoind.dylib "${os_dir}/libbitcoind.0.dylib"
cd "${os_dir}"
rm libbitcoind.dylib
ln -s libbitcoind.0.dylib libbitcoind.dylib
fi fi
echo 'Build finished successfully.' echo 'Build finished successfully.'

View File

@ -61,6 +61,10 @@ if test x"$1" = x'osdir'; then
exit 0 exit 0
fi fi
if test -z "$1" -o x"$1" = x'ext'; then
echo -n "${ext}"
fi
if test -z "$1" -o x"$1" = x'thread'; then if test -z "$1" -o x"$1" = x'thread'; then
echo -n "${thread}" echo -n "${thread}"
fi fi