From 991b362d9dcdca95aebc588c60cd00a2322cf7de Mon Sep 17 00:00:00 2001
From: Pawel Hajdan, Jr <phajdan.jr@chromium.org>
Date: Thu, 3 Nov 2011 16:48:43 +0100
Subject: [PATCH] Recognize Microsoft Permissive License (Ms-PL)

Note that according to FSF this is a free software license,
just incompatible with GPL: http://www.gnu.org/licenses/license-list.html#ms-pl

It's also OSI-approved: http://www.opensource.org/licenses/alphabetical

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

diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 461de28..ad61826 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -505,6 +505,10 @@ sub parselicense($) {
 	$license = "CDDL " . ($1 ? "(v$2) " : '') . $license;
     }
 
+    if ($licensetext =~ /Microsoft Permissive License \(Ms-PL\)/) {
+        $license = "Ms-PL $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;
-- 
1.7.4.4

