Commit 1f260393 authored by thestig@chromium.org's avatar thestig@chromium.org

checklicenses: Recognize licenses from FreeType and Anti-Grain Geometry.

BUG=177319,374943
NOTRY=true

Review URL: https://codereview.chromium.org/291153002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272927 0039d316-1c4b-4281-b951-d872f2087c98
parent dbb74eaa
......@@ -630,6 +630,17 @@ sub parselicense($) {
$license = $license . "Khronos Group";
}
if ($licensetext =~ /This file is part of the FreeType project, and may only be used(,)? modified(,)? and distributed under the terms of the FreeType project license, LICENSE\.TXT\. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully/) {
$license = "FreeType (BSD like) $license";
}
if ($licensetext =~ /This software, and all works of authorship, whether in source or object code form as indicated by the copyright notice.*is made available, and may only be used, modified, and distributed under the FreeType Project License, LICENSE\.TXT\. Additionally, subject to the terms and conditions of the FreeType Project License, each contributor to the Work hereby grants to any individual or legal entity exercising permissions granted by the FreeType Project License and this section.*a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable.*patent license to make/) {
$license = "FreeType (BSD like) with patent clause $license";
}
if ($licensetext =~ /Anti-Grain Geometry.*Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided as is without express or impl/) {
$license = "Anti-Grain Geometry $license";
}
$license = "UNKNOWN" unless $license;
# Remove trailing spaces.
......
......@@ -30,6 +30,7 @@ Examples:
WHITELISTED_LICENSES = [
'Anti-Grain Geometry',
'Apache (v2.0)',
'Apache (v2.0) BSD (2 clause)',
'Apache (v2.0) GPL (v2)',
......@@ -53,6 +54,8 @@ WHITELISTED_LICENSES = [
'BSD-like MIT/X11 (BSD like)',
'BSL (v1.0)',
'FreeType (BSD like)',
'FreeType (BSD like) with patent clause',
'GPL (v2) LGPL (v2.1 or later)',
'GPL (v2 or later) with Bison parser exception',
'GPL (v2 or later) with libtool exception',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment