From aa96aa3ac31a13d58423cf4068ae17a66d9108fa Mon Sep 17 00:00:00 2001 From: Cristian Ionescu-Idbohrn Date: Sat, 12 May 2018 18:35:43 +0200 Subject: Simplier way to get QT_VERSION Signed-off-by: Cristian Ionescu-Idbohrn Signed-off-by: Lubomir I. Ivanov --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build.sh') diff --git a/scripts/build.sh b/scripts/build.sh index f0f3f2f61..c8ca3bd0a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -152,7 +152,7 @@ fi # QtPositioning headers aren't bundled. Download them if necessary. if [ $PLATFORM = Linux ] ; then QT_HEADERS_PATH=`$QMAKE -query QT_INSTALL_HEADERS` - QT_VERSION=`$QMAKE -v | grep "Qt" | cut -d" " -f4` + QT_VERSION=`$QMAKE -query QT_VERSION` if [ ! -d "$QT_HEADERS_PATH/QtLocation/$QT_VERSION/QtLocation/private" ] && [ ! -d $INSTALL_ROOT/include/QtLocation/private ] ; then -- cgit v1.2.3-70-g09d2