diff options
author | Led Mitz <smoothshifter@tuta.io> | 2023-02-05 14:17:32 +0000 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2023-02-05 14:17:32 +0000 |
commit | 87b343b0ca48c2c04c752f42b1b16e2366e0fb2c (patch) | |
tree | a898135f80fb85762183be5386ed14d411887979 /build.sh | |
parent | 0e22fe810b3a6410359950e05c6b16b9511e974e (diff) | |
download | mv-87b343b0ca48c2c04c752f42b1b16e2366e0fb2c.tar.gz mv-87b343b0ca48c2c04c752f42b1b16e2366e0fb2c.tar.bz2 mv-87b343b0ca48c2c04c752f42b1b16e2366e0fb2c.tar.xz mv-87b343b0ca48c2c04c752f42b1b16e2366e0fb2c.zip |
Added checkes to build.sh, to show missing required (and optional) libraries and tools to build the client.old-stable
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -4,6 +4,23 @@ # ./build.sh lint | builds the project with linting (src, data, po) # ./build.sh lintonly | just linting (src, data, po) + +########## +#Required apps check +REQUIRED_APPS='g++ gcc xsel make autoconf automake autopoint gettext libxml2-dev libcurl4-gnutls-dev libpng-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev gdb valgrind netcat-openbsd procps zlib*' + for APP in $REQUIRED_APPS; do + REQ_APP_CHECK=$(which "$APP") + if [[ "$REQ_APP_CHECK" == '' ]]; then + echo -e "$APP must be installed in order for build to run\nRequired Apps: $REQUIRED_APPS" >&2 + read -p "Do you want to try to build anyway? (Type \"yes\" to continue)" APP_ANS + if [[ "$APP_ANS" == 'yes' ]]; then + break + else + exit 0 + fi + fi + done + dir=`pwd` if [[ ! -d "${dir}/src" ]]; then @@ -34,4 +51,4 @@ if [[ $1 != lintonly ]]; then make mkdir run make install -fi
\ No newline at end of file +fi |