From 87313a5ec02d6c04e5f79bb8c58619c29f74234d Mon Sep 17 00:00:00 2001
From: Pawel Hajdan, Jr <phajdan.jr@chromium.org>
Date: Thu, 3 Nov 2011 16:54:48 +0100
Subject: [PATCH] Recognize another variant of libpng license.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This is a part of an effort to make Chromium project sources
pass licensecheck: http://code.google.com/p/chromium/issues/detail?id=28291

Signed-off-by: Paweł Hajdan, Jr <phajdan.jr@chromium.org>
---
 scripts/licensecheck.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 461de28..05fbf2b 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -517,6 +517,8 @@ sub parselicense($) {
     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";
+    } elsif ($licensetext =~ /This code is released under the libpng license/) {
+        $license = "libpng $license";
     }
 
     if ($licensetext =~ /Do What The Fuck You Want To Public License, Version ([^, ]+)/i) {
-- 
1.7.4.4

