aboutsummaryrefslogtreecommitdiffstats
path: root/tools/licensecheck.pl
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-02-06 10:35:02 -0500
committerAnders Broman <a.broman58@gmail.com>2018-02-07 05:24:04 +0000
commitc4a6016be24b922c1f7399134acd2a6d4908be2a (patch)
tree4454dae980c9f7c505e526f524f05a71f820c33d /tools/licensecheck.pl
parent9beab2d89f624389643a38a9a5af9104209fc833 (diff)
tools: add licenses to licensecheck.pl.
Include the following licenses in licensecheck.pl 1. LGPL-2.0-or-later 2. Zlib 3. BSD-3-Clause Change-Id: I65f0ca1f957ee072ed595ab56d20ec200bd7047e Reviewed-on: https://code.wireshark.org/review/25638 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tools/licensecheck.pl')
-rwxr-xr-xtools/licensecheck.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/licensecheck.pl b/tools/licensecheck.pl
index 1df8374777..b3707dc67c 100755
--- a/tools/licensecheck.pl
+++ b/tools/licensecheck.pl
@@ -630,6 +630,8 @@ sub parselicense {
$gplver = " (v$1)";
} elsif ($licensetext =~ /SPDX-License-Identifier:\s+GPL-([1-9])\.0\+/i ) {
$gplver = " (v$1 or later)";
+ } elsif ($licensetext =~ /SPDX-License-Identifier:\s+LGPL-([1-9])\.0\-or-later/i ) {
+ $gplver = " (v$1 or later)";
}
if ($licensetext =~ /(?:675 Mass Ave|59 Temple Place|51 Franklin Steet|02139|02111-1307)/i) {
@@ -678,6 +680,18 @@ sub parselicense {
$license = "GPL$gplver$extrainfo $license";
}
+ if ($licensetext =~ /SPDX-License-Identifier:\s+LGPL/i and length $gplver) {
+ $license = "LGPL$gplver$extrainfo $license";
+ }
+
+ if ($licensetext =~ /SPDX-License-Identifier:\s+Zlib/i) {
+ $license = "Zlib";
+ }
+
+ if ($licensetext =~ /SPDX-License-Identifier:\s+BSD-3-Clause/i) {
+ $license = 'BSD-3-Clause';
+ }
+
if ($licensetext =~ /(?:is|may be)\s(?:(?:distributed|used).*?terms|being\s+released).*?\b(L?GPL)\b/) {
my $v = $gplver || ' (unversioned/unknown version)';
$license = "$1$v $license";