Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: third_party/devscripts/licensecheck.pl

Issue 25666010: Adding third party library hidapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Linux backend Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/hidapi/AUTHORS.txt » ('j') | third_party/hidapi/hidapi.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/devscripts/licensecheck.pl
diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl
index f7be5c5c0d6f37c806c8450fda4774e00459bf86..be54e959fac5a52c1f11b42db637b192ef8fc263 100755
--- a/third_party/devscripts/licensecheck.pl
+++ b/third_party/devscripts/licensecheck.pl
@@ -437,7 +437,7 @@ sub parselicense($) {
if ($licensetext =~ /version ([^, ]+?)[.,]? (?:\(?only\)?.? )?(?:of the GNU (Affero )?General Public License )?(as )?published by the Free Software Foundation/i or
$licensetext =~ /GNU (?:Affero )?General Public License (?:as )?published by the Free Software Foundation; version ([^, ]+?)[.,]? /i or
- $licensetext =~ /GNU (?:Affero )?General Public License,? [Vv]ersion (\d+(?:\.\d+)?)[ \.]/) {
+ $licensetext =~ /GNU (?:Affero )?General Public License,? [Vv](?:ersion )?(\d+(?:\.\d+)?)[ \.,]/) {
$gplver = " (v$1)";
} elsif ($licensetext =~ /either version ([^ ]+)(?: of the License)?, or \(at your option\) any later version/) {
$gplver = " (v$1 or later)";
@@ -468,10 +468,10 @@ sub parselicense($) {
if ($licensetext =~ /is free software.? you (can|may) redistribute it and\/or modify it under the terms of (?:version [^ ]+ (?:\(?only\)? )?of )?the GNU General Public License/i) {
$license = "GPL$gplver$extrainfo $license";
- } elsif ($licensetext =~ /is distributed under the terms of the GNU General Public License,/
+ } elsif ($licensetext =~ /under the terms of the GNU General Public License/i
and $gplver) {
$license = "GPL$gplver$extrainfo $license";
- } elsif ($licensetext =~ /is distributed.*terms.*[^L]GPL/) {
+ } elsif ($licensetext =~ /terms.*[^L]GPL/) {
if ($gplver) {
$license = "GPL$gplver$extrainfo $license";
} else {
@@ -512,7 +512,7 @@ sub parselicense($) {
} else {
$license = "BSD $license";
}
- } elsif ($licensetext =~ /Use of this source code is governed by a BSD-style license/) {
+ } elsif ($licensetext =~ /a BSD-style license/i) {
$license = "BSD-like $license";
} elsif ($licensetext =~ /BSD terms apply/) {
$license = "BSD-like $license";
« no previous file with comments | « no previous file | third_party/hidapi/AUTHORS.txt » ('j') | third_party/hidapi/hidapi.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698