From f54eb22d740835202be7ee09b0a6c280b9e98095 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Sun, 3 Jan 2021 02:49:31 -0500 Subject: [PATCH] added qmake check in build.sh --- build.sh | 6 ++++++ docs/index.html | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100755 docs/index.html diff --git a/build.sh b/build.sh index 871c677..609e8bf 100755 --- a/build.sh +++ b/build.sh @@ -15,6 +15,12 @@ else JOBS=1 fi +# Check if qmake is installed on system and exits if it is not +if ! [ -x "$(command -v qmake)" ]; then + echo 'Error: qmake is not installed. Install qmake and try again.' >&2 + exit 1 +fi + VERSION=$(cat src/version.h |cut -d\" -f2) echo "Compiling SilentDragon $VERSION with $JOBS threads..." CONF=silentdragon.pro diff --git a/docs/index.html b/docs/index.html deleted file mode 100755 index a82f076..0000000 --- a/docs/index.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -Hello World - - \ No newline at end of file