summaryrefslogtreecommitdiffstats
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorGravatar Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2018-05-12 18:35:43 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-05-12 19:45:28 +0300
commitaa96aa3ac31a13d58423cf4068ae17a66d9108fa (patch)
treed03a3989dea43e64bfd1c7c55e62cbf06e01959a /scripts/build.sh
parentcef6dff762fa8bd6bd62db1c1b6af1a6f375406d (diff)
downloadsubsurface-aa96aa3ac31a13d58423cf4068ae17a66d9108fa.tar.gz
Simplier way to get QT_VERSION
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh2
1 files changed, 1 insertions, 1 deletions
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