update to read SPDX tags (GPL-3+, LGPL 3+, and LGPL3 are enough for us)

This commit is contained in:
Sébastien Loriot
2019-10-20 00:36:39 +02:00
parent 9f4fe1a9e8
commit 8832addb4e
+12
View File
@@ -575,6 +575,18 @@ sub parselicense {
$license = "WTFPL $license";
}
if ($licensetext =~ /SPDX-License-Identifier GPL-3.0-or-later/i) {
$license = "GPL (v3 or later)";
}
if ($licensetext =~ /SPDX-License-Identifier LGPL-3.0-or-later/i) {
$license = "LGPL (v3 or later)";
}
if ($licensetext =~ /SPDX-License-Identifier LGPL-3.0-only/i) {
$license = "LGPL (v3)";
}
$license = "UNKNOWN" if (!length($license));
# Remove trailing spaces.