diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-01 05:58:11 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-01 09:22:25 (GMT) |
commit | b2e91ecd641b9c891ea823cfc647f729af6228e8 (patch) | |
tree | 2c9df8e3bb8a3df4054756e545300bb63f063720 /tools/configure | |
parent | 651f63172e4f68f8e084c16415499fdbda08bf39 (diff) | |
download | Qt-b2e91ecd641b9c891ea823cfc647f729af6228e8.zip Qt-b2e91ecd641b9c891ea823cfc647f729af6228e8.tar.gz Qt-b2e91ecd641b9c891ea823cfc647f729af6228e8.tar.bz2 |
Make the existence of the LICENSE.GPL3 file optional
The repository no longer carries this license. The final releases will
still have it. In any case, the LGPLv2.1 is compatible with the GPLv3.
Required-By: Nokia Legal
Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'tools/configure')
-rw-r--r-- | tools/configure/configureapp.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 7ccd35b..193f8aa 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -3415,10 +3415,14 @@ bool Configure::showLicense(QString orgLicenseFile) return true; } + bool haveGpl3 = false; QString licenseFile = orgLicenseFile; QString theLicense; if (dictionary["EDITION"] == "OpenSource" || dictionary["EDITION"] == "Snapshot") { - theLicense = "GNU General Public License (GPL) version 3 \nor the GNU Lesser General Public License (LGPL) version 2.1"; + haveGpl3 = QFile::exists(orgLicenseFile + "/LICENSE.GPL3"); + theLicense = "GNU Lesser General Public License (LGPL) version 2.1"; + if (haveGpl3) + theLicense += "\nor the GNU General Public License (GPL) version 3"; } else { // the first line of the license file tells us which license it is QFile file(licenseFile); @@ -3435,7 +3439,8 @@ bool Configure::showLicense(QString orgLicenseFile) << "the " << theLicense << "." << endl << endl; if (dictionary["EDITION"] == "OpenSource" || dictionary["EDITION"] == "Snapshot") { - cout << "Type '3' to view the GNU General Public License version 3 (GPLv3)." << endl; + if (haveGpl3) + cout << "Type '3' to view the GNU General Public License version 3 (GPLv3)." << endl; cout << "Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1)." << endl; } else { cout << "Type '?' to view the " << theLicense << "." << endl; |