mirror of https://github.com/CGAL/cgal
check for the absence of license notice in headers
This commit is contained in:
parent
fcd0529fb3
commit
5dfd8b753f
|
|
@ -575,16 +575,24 @@ sub parselicense {
|
|||
$license = "WTFPL $license";
|
||||
}
|
||||
|
||||
if ($licensetext =~ /SPDX-License-Identifier GPL-3.0-or-later/i) {
|
||||
$license = "GPL (v3 or later)";
|
||||
# Since SPDX tags are sufficient, make sure no license notice was present
|
||||
if (length($license)!=0 && $license ne "GENERATED FILE")
|
||||
{
|
||||
$license = $license." READ FROM LICENSE NOTICE THAT SHOULD NOT BE PRESENT";
|
||||
}
|
||||
else
|
||||
{
|
||||
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-or-later/i) {
|
||||
$license = "LGPL (v3 or later)";
|
||||
}
|
||||
|
||||
if ($licensetext =~ /SPDX-License-Identifier LGPL-3.0-only/i) {
|
||||
$license = "LGPL (v3)";
|
||||
if ($licensetext =~ /SPDX-License-Identifier LGPL-3.0-only/i) {
|
||||
$license = "LGPL (v3)";
|
||||
}
|
||||
}
|
||||
|
||||
$license = "UNKNOWN" if (!length($license));
|
||||
|
|
|
|||
Loading…
Reference in New Issue