Merge pull request 'added rustc and cargo checks to build.sh' (#29) from jahway603/SilentDragonLite:dev into dev

Reviewed-on: https://git.hush.is/hush/SilentDragonLite/pulls/29
This commit is contained in:
Duke Leto
2021-07-08 17:28:45 +00:00

View File

@@ -13,6 +13,18 @@ else
JOBS=1
fi
# check if rustc and cargo are installed, otherwise exit with error
if ! command -v rustc &> /dev/null
then
echo "rustc could not be found. Please install it and try again."
exit
fi
if ! command -v cargo &> /dev/null
then
echo "cargo could not be found. Please install it and try again."
exit
fi
VERSION=$(cat src/version.h |cut -d\" -f2)
echo "Compiling SilentDragonLite $VERSION with $JOBS threads..."
CONF=silentdragon-lite.pro