]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Some additional tweaks to the license count script
authorRuss Allbery <rra@debian.org>
Thu, 10 Jun 2010 23:54:48 +0000 (16:54 -0700)
committerRuss Allbery <rra@debian.org>
Thu, 10 Jun 2010 23:54:48 +0000 (16:54 -0700)
Also look for LPPL version 1.3a and for any version of the license.
Be case-insensitive when looking for the Artistic 2.0 license.

tools/license-count

index b8f14f27ee54c5535c250237048d7ab4cac05a60..97cde792187dcf2b5aaaaae3871a1366dd4f6c15 100755 (executable)
@@ -38,7 +38,7 @@ our @RULES = (
     [qr,(?m)^License:.*Perl,                       => 'Artistic'],
     [qr,(?m)^License:.*Perl,                       => 'GPL 1'],
 
-    [qr,The Artistic License 2\.0,                 => 'Artistic 2.0'],
+    [qr,(?i)The Artistic License 2\.0,             => 'Artistic 2.0'],
     [qr,COMMON DEVELOPMENT AND DISTRIBUTION LICENSE \(CDDL\), => 'CDDL'],
     [qr,CONTRAT DE LICENCE DE LOGICIEL LIBRE CeCILL(?!-), => 'CeCILL'],
     [qr,CeCILL FREE SOFTWARE LICENSE AGREEMENT,    => 'CeCILL'],
@@ -49,7 +49,9 @@ our @RULES = (
     [qr,(?i)creative\s+commons\s+attribution\s+3\.0, => 'CC-BY 3.0'],
     [qr,(?i)creative\s+commons\s+attribution[-\s]+share\s*alike\s+3\.0, => 'CC-BY-SA 3.0'],
     [qr,GNU GENERAL PUBLIC LICENSE\s+Version 1,    => 'GPL 1'],
-    [qr,LPPL Version 1.3c,                         => 'LaTeX PPL 1.3c'],
+    [qr,LPPL Version,                              => 'LaTeX PPL (any)'],
+    [qr,LPPL Version 1\.3a,                        => 'LaTeX PPL 1.3a'],
+    [qr,LPPL Version 1\.3c,                        => 'LaTeX PPL 1.3c'],
     [qr,MOZILLA PUBLIC LICENSE\s+Version 1\.1,     => 'MPL 1.1'],
     [qr,SIL OPEN FONT LICENSE Version 1\.1,        => 'SIL OFL 1.1'],
     [qr,SIL OPEN FONT LICENSE Version 1\.0,        => 'SIL OFL 1.0'],