From 950d9dadbb7c7407a616247ae2b9b6fb8c82638f Mon Sep 17 00:00:00 2001 From: Florian Wetzel Date: Thu, 3 Oct 2024 10:07:14 +0200 Subject: [PATCH] Add build script --- .gitignore | 3 ++- iconconvert/build.sh | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 iconconvert/build.sh diff --git a/.gitignore b/.gitignore index 1aaaf52..f28b307 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/build-* +build-* +build/ diff --git a/iconconvert/build.sh b/iconconvert/build.sh new file mode 100755 index 0000000..89014f0 --- /dev/null +++ b/iconconvert/build.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +if [[ $PWD != *"esp-gui-lib/iconconvert"* ]] || [[ $0 != *"build.sh"* ]]; then + echo "This script must be run from the iconconvert directory" + exit 1 +fi + + +# check if qmake is installed +if ! command -v qmake; then + echo "Qmake is not installed" + exit 1 +fi + +# check if make is installed +if ! command -v make; then + echo "Make is not installed" + exit 1 +fi + +mkdir -p build +cd build || exit 1 +qmake .. +make +cd ..