mirror of https://github.com/CGAL/cgal
update to read SPDX tags (GPL-3+, LGPL 3+, and LGPL3 are enough for us)
This commit is contained in:
parent
9f4fe1a9e8
commit
8832addb4e
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue