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

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

Issue 328663005: Revert of Add colorama to third_party/colorama (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « third_party/colorama/README.chromium ('k') | 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 $license = "BSD-like $license"; 524 $license = "BSD-like $license";
525 } elsif ($licensetext =~ /BSD terms apply/) { 525 } elsif ($licensetext =~ /BSD terms apply/) {
526 $license = "BSD-like $license"; 526 $license = "BSD-like $license";
527 } elsif ($licensetext =~ /subject to the BSD License/) { 527 } elsif ($licensetext =~ /subject to the BSD License/) {
528 # TODO(sbc): remove this case once we fix: http://crbug.com/177268 528 # TODO(sbc): remove this case once we fix: http://crbug.com/177268
529 $license = "BSD-like $license"; 529 $license = "BSD-like $license";
530 } elsif ($licensetext =~ /license BSD/) { 530 } elsif ($licensetext =~ /license BSD/) {
531 $license = "BSD-like $license"; 531 $license = "BSD-like $license";
532 } elsif ($licensetext =~ /GOVERNED BY A BSD-STYLE SOURCE LICENSE/) { 532 } elsif ($licensetext =~ /GOVERNED BY A BSD-STYLE SOURCE LICENSE/) {
533 $license = "BSD-like $license"; 533 $license = "BSD-like $license";
534 } elsif ($licensetext =~ /BSD 3-Clause license/) {
535 $license = "BSD (3 clause) $license";
536 } 534 }
537 535
538 if ($licensetext =~ /Mozilla Public License( Version|, v.) ([^ ]+[^., ]),?/) { 536 if ($licensetext =~ /Mozilla Public License( Version|, v.) ([^ ]+[^., ]),?/) {
539 $license = "MPL (v$2) $license"; 537 $license = "MPL (v$2) $license";
540 } 538 }
541 539
542 if ($licensetext =~ /Released under the terms of the Artistic License ([^ ]+ )/) { 540 if ($licensetext =~ /Released under the terms of the Artistic License ([^ ]+ )/) {
543 $license = "Artistic (v$1) $license"; 541 $license = "Artistic (v$1) $license";
544 } 542 }
545 543
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 return $license; 649 return $license;
652 } 650 }
653 651
654 sub fatal($) { 652 sub fatal($) {
655 my ($pack,$file,$line); 653 my ($pack,$file,$line);
656 ($pack,$file,$line) = caller(); 654 ($pack,$file,$line) = caller();
657 (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;
658 $msg =~ s/\n\n$/\n/; 656 $msg =~ s/\n\n$/\n/;
659 die $msg; 657 die $msg;
660 } 658 }
OLDNEW
« no previous file with comments | « third_party/colorama/README.chromium ('k') | tools/checklicenses/checklicenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698