Add build script

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

No files matched your search

+25
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 ..