licensecheck: add BSD licenses.

Change-Id: I764d03e4dc6d8925e656f37c98ece3da1fb1f001
Reviewed-on: https://code.wireshark.org/review/26335
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Dario Lombardo 2018-03-07 15:39:29 +01:00 committed by Anders Broman
parent 8a5385b9c9
commit 71f36379ae
1 changed files with 8 additions and 0 deletions

View File

@ -695,6 +695,14 @@ sub parselicense {
$license = 'BSD (3 clause)';
}
if ($licensetext =~ /SPDX-License-Identifier:\s+BSD-2-Clause/i) {
$license = 'BSD (2 clause)';
}
if ($licensetext =~ /SPDX-License-Identifier:\s+BSD-1-Clause/i) {
$license = 'BSD';
}
if ($licensetext =~ /SPDX-License-Identifier:\s+MIT/i) {
$license = 'MIT/X11 (BSD like)';
}