From 579085a5859e5461aed7d374931585455ad82940 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 29 Dec 2021 08:36:02 +0300 Subject: [PATCH] Setup sanity checks --- mingw64_deps/boost/setup.sh | 5 +++++ mingw64_deps/db/setup.sh | 15 +++++++++++++++ mingw64_deps/openssl/setup.sh | 5 +++++ mingw64_deps/png/setup.sh | 5 +++++ mingw64_deps/qt/setup.sh | 5 +++++ 5 files changed, 35 insertions(+), 0 deletions(-) diff --git a/mingw64_deps/boost/setup.sh b/mingw64_deps/boost/setup.sh index d2f5988..8a35c2e 100755 --- a/mingw64_deps/boost/setup.sh +++ b/mingw64_deps/boost/setup.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [[ ! $(which wget) ]]; then + echo "wget is not installed" + exit -1 +fi + ROOT=$(pwd) VER=1_78_0 diff --git a/mingw64_deps/db/setup.sh b/mingw64_deps/db/setup.sh index 6b373ee..007c536 100755 --- a/mingw64_deps/db/setup.sh +++ b/mingw64_deps/db/setup.sh @@ -1,5 +1,20 @@ #!/bin/bash +if [[ ! $(which wget) ]]; then + echo "wget is not installed" + exit -1 +fi + +if [[ ! $(which tar) ]]; then + echo "tar is not installed" + exit -1 +fi + +if [[ ! $(which sed) ]]; then + echo "sed is not installed" + exit -1 +fi + wget https://fossies.org/linux/misc/db-18.1.40.tar.gz tar -xzf db-18.1.40.tar.gz mv db-18.1.40 libdb diff --git a/mingw64_deps/openssl/setup.sh b/mingw64_deps/openssl/setup.sh index e28dd7d..7847a1a 100755 --- a/mingw64_deps/openssl/setup.sh +++ b/mingw64_deps/openssl/setup.sh @@ -1,3 +1,8 @@ #!/bin/bash +if [[ ! $(which git) ]]; then + echo "git is not installed" + exit -1 +fi + git clone -b openssl-3.0 https://github.com/openssl/openssl diff --git a/mingw64_deps/png/setup.sh b/mingw64_deps/png/setup.sh index 49f0b2a..ba0c0df 100755 --- a/mingw64_deps/png/setup.sh +++ b/mingw64_deps/png/setup.sh @@ -1,4 +1,9 @@ #!/bin/sh +if [[ ! $(which git) ]]; then + echo "git is not installed" + exit -1 +fi + git clone https://github.com/madler/zlib git clone https://github.com/glennrp/libpng diff --git a/mingw64_deps/qt/setup.sh b/mingw64_deps/qt/setup.sh index c3ce729..5a2beb7 100755 --- a/mingw64_deps/qt/setup.sh +++ b/mingw64_deps/qt/setup.sh @@ -1,5 +1,10 @@ #!/bin/sh +if [[ ! $(which git) ]]; then + echo "git is not installed" + exit -1 +fi + git clone -b 5.15.2 https://github.com/qt/qtbase.git git clone -b 5.15.2 https://github.com/qt/qttools.git git clone -b 5.15.2 https://github.com/qt/qttranslations.git -- 1.7.1