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

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: rebase 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 } 623 }
624 624
625 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/) { 625 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/) {
626 $license = $license . "with libtool exception"; 626 $license = $license . "with libtool exception";
627 } 627 }
628 628
629 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/) { 629 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/) {
630 $license = $license . "Khronos Group"; 630 $license = $license . "Khronos Group";
631 } 631 }
632 632
633 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/) {
634 $license = "FreeType (BSD like) $license";
635 }
636 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/) {
637 $license = "FreeType (BSD like) with patent clause $license";
638 }
639
640 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/) {
641 $license = "Anti-Grain Geometry $license";
642 }
643
633 $license = "UNKNOWN" unless $license; 644 $license = "UNKNOWN" unless $license;
634 645
635 # Remove trailing spaces. 646 # Remove trailing spaces.
636 $license =~ s/\s+$//; 647 $license =~ s/\s+$//;
637 648
638 return $license; 649 return $license;
639 } 650 }
640 651
641 sub fatal($) { 652 sub fatal($) {
642 my ($pack,$file,$line); 653 my ($pack,$file,$line);
643 ($pack,$file,$line) = caller(); 654 ($pack,$file,$line) = caller();
644 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; 655 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d;
645 $msg =~ s/\n\n$/\n/; 656 $msg =~ s/\n\n$/\n/;
646 die $msg; 657 die $msg;
647 } 658 }
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