[devscripts] 06/16: license_check: add another way to extract version from GPL

dod at debian.org dod at debian.org
Thu May 14 16:34:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository devscripts.

commit c00b84b6dfc28434992215d9b42077b13a7e967f
Author: Dominique Dumont <dod at debian.org>
Date:   Thu May 14 16:14:28 2015 +0200

    license_check: add another way to extract version from GPL
---
 scripts/licensecheck.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index d6c33b5..9364b32 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -467,6 +467,8 @@ sub parselicense {
 	$gplver = " (v$1 or later)";
     } elsif ($licensetext =~ /either version ([^ ]+)(?: of the License)?, or \(at your option\) version (\d(?:[\.-]\d+)*)/) {
 	$gplver = " (v$1 or v$2)";
+    } elsif ($licensetext =~ /GPL\sas\spublished\sby\sthe\sFree\sSoftware\sFoundation,\sversion\s([\d.]+)/i ) {
+	$gplver = " (v$1)";
     }
 
     if ($licensetext =~ /(?:675 Mass Ave|59 Temple Place|51 Franklin Steet|02139|02111-1307)/i) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list