Project

General

Profile

qt5check.sh

Ulrich von der Ohe, 07 Oct 2022 19:47

 
1
#!/usr/bin/env sh
2

    
3
if ! qmake -v; then
4
    printf '%s\n' 'ERROR: qmake not found, cannot build Qt GUI' > /dev/stderr
5
    exit 1
6
fi
7

    
8
rm -f .qmake.stash qt5check qt5check-makefile qt5check.o
9

    
10
qmake qt5check.pro
11
make --file=qt5check-makefile
12

    
13
if ! ./qt5check; then
14
    printf '%s\n' 'ERROR: Insufficient Qt5 system' > /dev/stderr
15
    exit 1
16
fi
17

    
18
rm -f .qmake.stash qt5check qt5check-makefile qt5check.o
19

    
20
printf '%s\n' 'qt5check finished successfully'