diff --git a/build.sh b/build.sh index d513134..8f167df 100755 --- a/build.sh +++ b/build.sh @@ -4,18 +4,7 @@ set -e UNAME=$(uname) - -if [ "$UNAME" == "Linux" ] ; then - JOBS=$(nproc) -elif [ "$UNAME" == "FreeBSD" ] ; then - JOBS=$(nproc) -elif [ "$UNAME" == "Darwin" ] ; then - JOBS=$(sysctl -n hw.ncpu) -else - JOBS=1 -fi - -VERSION=$(cat src/version.h |cut -d\" -f2) +VERSION=$(grep APP_VERSION src/version.h |cut -d\" -f2) CONF=${SDCONF:-silentdragon.pro} WALLET="SilentDragon" if [ "$CONF" == "silentdragonx.pro" ] ; then @@ -40,12 +29,12 @@ make --version qbuild () { qmake $CONF -spec linux-clang CONFIG+=debug - make -j$JOBS + make -j2 "$@" } qbuild_release () { qmake $CONF -spec linux-clang CONFIG+=release - make -j$JOBS + make -j2 "$@" } if [ "$1" == "clean" ]; then @@ -55,9 +44,9 @@ elif [ "$1" == "linguist" ]; then lrelease $CONF elif [ "$1" == "cleanbuild" ]; then make clean - qbuild + qbuild "$@" elif [ "$1" == "release" ]; then - qbuild_release + qbuild_release "$@" else - qbuild + qbuild "$@" fi