diff --git a/README.md b/README.md index 3f34fb5f..68853444 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,15 @@ Once everything is built, you can run bitcore-node via: ```bash npm start ``` - This will then start the syncing process for Bitcoin Core and the extended capabilities as provided by the built-in Address Module (details below). +### Fedora + +Later versions of Fedora (>= 22) should also work with this project. The directions for Ubuntu should generally work except the installation of system utilities and libraries is a bit different. Git is already installed and ready for use without installation. + +```bash +yum install libtool automake autoconf pkgconfig openssl make gcc gcc-c++ kernel-devel openssl-devel.x86_64 patch +``` ### Mac OS X Yosemite diff --git a/bin/build b/bin/build index 2121eb9a..9dc6b68b 100755 --- a/bin/build +++ b/bin/build @@ -61,7 +61,13 @@ if [ "${BITCORENODE_ENV}" == "test" ]; then options=`cat ${root_dir}/bin/config_options_test.sh` fi -patch_file_sha=$(shasum -a 256 "${root_dir}/etc/bitcoin.patch" | awk '{print $1}') +if hash shasum 2>/dev/null; then + shasum_cmd="shasum -a 256" +else + shasum_cmd="sha256sum" +fi + +patch_file_sha=$(${shasum_cmd} "${root_dir}/etc/bitcoin.patch" | awk '{print $1}') last_patch_file_sha= if [ -e "${patch_sha}" ]; then echo "Patch file sha exists, let's see if the patch has changed since last build..."