summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorJani Heikkinen <jani.heikkinen@qt.io>2019-12-02 13:42:49 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2020-01-15 05:18:32 +0000
commitbdccc51bc1d794a3932c888a3e50bfbe32e079d3 (patch)
tree83545e7709d92b9283baf10932a6f98b52a56e39 /configure.pri
parent044ac31b244165648997552593c94c6fa9314aa7 (diff)
Fix configure after updating qt license file
License file (LICENSE.QT-LICENSE-AGREEMENT-4.0) was recently updated to version 4.2 and that broke the configure. Remove qt license file version number from file name to avoid configure update need when license file is updated Change-Id: I77b4a4e7c6e590bbbce79d1c86cbcfb965841eae Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit a5cbff60f063d271500e31eba5bd236741d2367b) Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.pri b/configure.pri
index b109192beb..037cd0abc4 100644
--- a/configure.pri
+++ b/configure.pri
@@ -72,7 +72,7 @@ defineReplace(qtConfFunc_licenseCheck) {
hasOpenSource = true
else: \
hasOpenSource = false
- exists($$QT_SOURCE_TREE/LICENSE.QT-LICENSE-AGREEMENT-4.0): \
+ exists($$QT_SOURCE_TREE/LICENSE.QT-LICENSE-AGREEMENT): \
hasCommercial = true
else: \
hasCommercial = false
@@ -202,7 +202,7 @@ defineReplace(qtConfFunc_licenseCheck) {
affix = either
}
} else {
- theLicense = $$cat($$QT_SOURCE_TREE/LICENSE.QT-LICENSE-AGREEMENT-4.0, lines)
+ theLicense = $$cat($$QT_SOURCE_TREE/LICENSE.QT-LICENSE-AGREEMENT, lines)
theLicense = $$first(theLicense)
showWhat = "Type '?' to view the $${theLicense}."
}
@@ -229,7 +229,7 @@ defineReplace(qtConfFunc_licenseCheck) {
} else: equals(val, n)|equals(val, no) {
return(false)
} else: equals(commercial, yes):equals(val, ?) {
- licenseFile = $$QT_SOURCE_TREE/LICENSE.QT-LICENSE-AGREEMENT-4.0
+ licenseFile = $$QT_SOURCE_TREE/LICENSE.QT-LICENSE-AGREEMENT
} else: equals(commercial, no):equals(val, l) {
licenseFile = $$QT_SOURCE_TREE/LICENSE.LGPL3
} else: equals(commercial, no):equals(val, g):$$gpl2Ok {