diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 17:03:03 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 17:03:03 +0000 |
commit | 2a6dda2f45d680ef5fc002c5a3e29cfc3d78773a (patch) | |
tree | 40e66a370a5c17279e381eb4b986fa8cbc1e32c2 /third_party | |
parent | ebd6e59c205e1df76d95968f4f78601f24280c5b (diff) | |
download | chromium_src-2a6dda2f45d680ef5fc002c5a3e29cfc3d78773a.zip chromium_src-2a6dda2f45d680ef5fc002c5a3e29cfc3d78773a.tar.gz chromium_src-2a6dda2f45d680ef5fc002c5a3e29cfc3d78773a.tar.bz2 |
Recognize Apple licenses.
BUG=98114, 98115
Review URL: http://codereview.chromium.org/8085016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103729 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/devscripts/chromium-1.patch | 21 | ||||
-rwxr-xr-x | third_party/devscripts/licensecheck.pl | 7 |
2 files changed, 21 insertions, 7 deletions
diff --git a/third_party/devscripts/chromium-1.patch b/third_party/devscripts/chromium-1.patch index 960f94e..5b50831 100644 --- a/third_party/devscripts/chromium-1.patch +++ b/third_party/devscripts/chromium-1.patch @@ -1,5 +1,5 @@ ---- licensecheck.pl.orig 2011-09-30 11:26:05.132392850 -0700 -+++ licensecheck.pl 2011-09-30 11:29:27.662389093 -0700 +--- licensecheck.pl.orig 2011-09-22 10:51:25.934402455 -0700 ++++ licensecheck.pl 2011-10-03 09:49:41.651443138 -0700 @@ -241,6 +241,12 @@ my @find_args = (); my $files_count = @ARGV; @@ -81,7 +81,7 @@ $license = "MIT/X11 (BSD like) $license"; } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \(the Software\), to deal in the Software/) { $license = "MIT/X11 (BSD like) $license"; -@@ -448,15 +437,19 @@ +@@ -448,15 +437,21 @@ } if ($licensetext =~ /THIS SOFTWARE IS PROVIDED .*AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY/) { @@ -106,7 +106,7 @@ } if ($licensetext =~ /Mozilla Public License Version ([^ ]+)/) { -@@ -475,7 +468,9 @@ +@@ -475,7 +470,9 @@ $license = "Perl $license"; } @@ -117,7 +117,7 @@ $license = "Apache (v$1) $license"; } -@@ -495,7 +490,7 @@ +@@ -495,7 +492,7 @@ $license = "SGI Free Software License B $license"; } @@ -126,7 +126,7 @@ $license = "Public domain"; } -@@ -503,6 +498,10 @@ +@@ -503,6 +500,17 @@ $license = "CDDL " . ($1 ? "(v$2) " : '') . $license; } @@ -134,10 +134,17 @@ + $license = "Ms-PL $license"; + } + ++ if ($licensetext =~ /as defined in and that are subject to the Apple Public Source License([ ,-]+Version ([^ ]+)?(\.))/) { ++ $license = "APSL " . ($1 ? "(v$2) " : '') . $license; ++ } elsif ($licensetext =~ /provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software/) { ++ # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License ++ $license = "Apple MIT $license"; ++ } ++ if ($licensetext =~ /Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license \(the \"Software\"\)/ or $licensetext =~ /Boost Software License([ ,-]+Version ([^ ]+)?(\.))/i) { $license = "BSL " . ($1 ? "(v$2) " : '') . $license; -@@ -515,18 +514,8 @@ +@@ -515,18 +523,8 @@ if ($licensetext =~ /The origin of this software must not be misrepresented.*Altered source versions must be plainly marked as such.*This notice may not be removed or altered from any source distribution/ or $licensetext =~ /see copyright notice in zlib\.h/) { $license = "zlib/libpng $license"; diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl index 9e12df1..97cefad 100755 --- a/third_party/devscripts/licensecheck.pl +++ b/third_party/devscripts/licensecheck.pl @@ -504,6 +504,13 @@ sub parselicense($) { $license = "Ms-PL $license"; } + if ($licensetext =~ /as defined in and that are subject to the Apple Public Source License([ ,-]+Version ([^ ]+)?(\.))/) { + $license = "APSL " . ($1 ? "(v$2) " : '') . $license; + } elsif ($licensetext =~ /provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software/) { + # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License + $license = "Apple MIT $license"; + } + if ($licensetext =~ /Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license \(the \"Software\"\)/ or $licensetext =~ /Boost Software License([ ,-]+Version ([^ ]+)?(\.))/i) { $license = "BSL " . ($1 ? "(v$2) " : '') . $license; |