Add build script

This commit is contained in:
Florian Wetzel
2024-10-03 10:07:14 +02:00
parent 7e17dcf7d8
commit 950d9dadbb
2 changed files with 27 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/build-*
build-*
build/

25
iconconvert/build.sh Executable file
View File

@ -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 ..