aboutsummaryrefslogtreecommitdiffstats
path: root/tools/licensecheck.pl
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-02-07 11:22:56 -0800
committerGerald Combs <gerald@wireshark.org>2018-02-07 19:55:34 +0000
commit8ae0467e61cbf8a6256826ba0aac2cb5b8734c26 (patch)
treeb4218409d5478b82be191a7cea653114f7986d46 /tools/licensecheck.pl
parent80a1dd70295ce06d55ba1b9e7b58647c74ae77c0 (diff)
tools: Add SPDX MIT to licensecheck.pl.
Add a check for "SPDX-License-Identifier: MIT". Change-Id: Id69c87e7d8d7fd3904a02f9fb410bae8e9d99d10 Reviewed-on: https://code.wireshark.org/review/25669 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools/licensecheck.pl')
-rwxr-xr-xtools/licensecheck.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/licensecheck.pl b/tools/licensecheck.pl
index b3707dc67c..8adab0347e 100755
--- a/tools/licensecheck.pl
+++ b/tools/licensecheck.pl
@@ -692,6 +692,10 @@ sub parselicense {
$license = 'BSD-3-Clause';
}
+ if ($licensetext =~ /SPDX-License-Identifier:\s+MIT/i) {
+ $license = 'MIT/X11 (BSD like)';
+ }
+
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";