Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: third_party/devscripts/licensecheck.pl

Issue 291153002: checklicenses: Recognize licenses from FreeType and Anti-Grain Geometry. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/checklicenses/checklicenses.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -w
2 # This script was originally based on the script of the same name from 2 # This script was originally based on the script of the same name from
3 # the KDE SDK (by dfaure@kde.org) 3 # the KDE SDK (by dfaure@kde.org)
4 # 4 #
5 # This version is 5 # This version is
6 # Copyright (C) 2007, 2008 Adam D. Barratt 6 # Copyright (C) 2007, 2008 Adam D. Barratt
7 # Copyright (C) 2012 Francesco Poli 7 # Copyright (C) 2012 Francesco Poli
8 # 8 #
9 # This program is free software; you can redistribute it and/or modify 9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by 10 # it under the terms of the GNU General Public License as published by
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 620
621 if ($licensetext =~ /As a special exception to the GNU General Public Licens e, if you distribute this file as part of a program or library that is built usi ng GNU Libtool, you may include this file under the same distribution terms that you use for the rest of that program/) { 621 if ($licensetext =~ /As a special exception to the GNU General Public Licens e, if you distribute this file as part of a program or library that is built usi ng GNU Libtool, you may include this file under the same distribution terms that you use for the rest of that program/) {
622 $license = $license . "with libtool exception"; 622 $license = $license . "with libtool exception";
623 } 623 }
624 624
625 if ($licensetext =~ /These materials are protected by copyright laws and con tain material proprietary to the Khronos Group, Inc\. You may use these material s for implementing Khronos specifications, without altering or removing any trad emark, copyright or other notice from the specification/) { 625 if ($licensetext =~ /These materials are protected by copyright laws and con tain material proprietary to the Khronos Group, Inc\. You may use these material s for implementing Khronos specifications, without altering or removing any trad emark, copyright or other notice from the specification/) {
626 $license = $license . "Khronos Group"; 626 $license = $license . "Khronos Group";
627 } 627 }
628 628
629 if ($licensetext =~ /This file is part of the FreeType project, and may only be used(,)? modified(,)? and distributed under the terms of the FreeType projec t license, LICENSE\.TXT\. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully/) {
630 $license = "FreeType (BSD like) $license";
631 }
632 if ($licensetext =~ /This software, and all works of authorship, whether in source or object code form as indicated by the copyright notice.*is made availab le, and may only be used, modified, and distributed under the FreeType Project L icense, LICENSE\.TXT\. Additionally, subject to the terms and conditions of the FreeType Project License, each contributor to the Work hereby grants to any indi vidual or legal entity exercising permissions granted by the FreeType Project Li cense and this section.*a perpetual, worldwide, non-exclusive, no-charge, royalt y-free, irrevocable.*patent license to make/) {
633 $license = "FreeType (BSD like) with patent clause $license";
634 }
635
636 if ($licensetext =~ /Anti-Grain Geometry.*Permission to copy, use, modify, s ell and distribute this software is granted provided this copyright notice appea rs in all copies. This software is provided as is without express or impl/) {
Paweł Hajdan Jr. 2014/05/20 12:41:58 Isn't this just MIT or something? How is this lice
Lei Zhang 2014/05/22 06:57:11 It looks like a very very condensed version of the
637 $license = "Anti-Grain Geometry $license";
638 }
639
629 $license = "UNKNOWN" unless $license; 640 $license = "UNKNOWN" unless $license;
630 641
631 # Remove trailing spaces. 642 # Remove trailing spaces.
632 $license =~ s/\s+$//; 643 $license =~ s/\s+$//;
633 644
634 return $license; 645 return $license;
635 } 646 }
636 647
637 sub fatal($) { 648 sub fatal($) {
638 my ($pack,$file,$line); 649 my ($pack,$file,$line);
639 ($pack,$file,$line) = caller(); 650 ($pack,$file,$line) = caller();
640 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; 651 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d;
641 $msg =~ s/\n\n$/\n/; 652 $msg =~ s/\n\n$/\n/;
642 die $msg; 653 die $msg;
643 } 654 }
OLDNEW
« no previous file with comments | « no previous file | tools/checklicenses/checklicenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698