Merge pull request #18 from braydonf/mkdirs

Make directory if it doesn't exist.
This commit is contained in:
Chris Kleeschulte 2015-07-10 13:01:54 -04:00
commit 841f94c9c6
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ if test -e "${root_dir}/libbitcoind/src/.libs/libbitcoind.${ext}"; then
fi
cp -R "${root_dir}"/libbitcoind/src/.libs/libbitcoind.*dylib "${os_dir}/lib/"
else
if [ ! -d "${os_dir}" ]; then
mkdir -p "${os_dir}"
fi
cp -P "${root_dir}"/libbitcoind/src/.libs/libbitcoind.so* "${os_dir}/"
fi
fi