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

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

Issue 60293005: Relax checklicenses.py for third_party/mach_override (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify licensecheck.pl instead Created 7 years, 1 month 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 | no next file » | 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 $license = "GPL (unversioned/unknown version) $license"; 478 $license = "GPL (unversioned/unknown version) $license";
479 } 479 }
480 } 480 }
481 481
482 if ($licensetext =~ /This file is part of the .*Qt GUI Toolkit. This file ma y be distributed under the terms of the Q Public License as defined/) { 482 if ($licensetext =~ /This file is part of the .*Qt GUI Toolkit. This file ma y be distributed under the terms of the Q Public License as defined/) {
483 $license = "QPL (part of Qt) $license"; 483 $license = "QPL (part of Qt) $license";
484 } elsif ($licensetext =~ /may be distributed under the terms of the Q Public License as defined/) { 484 } elsif ($licensetext =~ /may be distributed under the terms of the Q Public License as defined/) {
485 $license = "QPL $license"; 485 $license = "QPL $license";
486 } 486 }
487 487
488 if ($licensetext =~ /opensource\.org\/licenses\/mit-license\.php/) { 488 if ($licensetext =~ /opensource\.org\/licenses\/mit/) {
489 $license = "MIT/X11 (BSD like) $license"; 489 $license = "MIT/X11 (BSD like) $license";
490 } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to a ny person obtaining a copy of this software and(\/or)? associated documentation files \(the (Software|Materials)\), to deal in the (Software|Materials)/) { 490 } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to a ny person obtaining a copy of this software and(\/or)? associated documentation files \(the (Software|Materials)\), to deal in the (Software|Materials)/) {
491 $license = "MIT/X11 (BSD like) $license"; 491 $license = "MIT/X11 (BSD like) $license";
492 } elsif ($licensetext =~ /Permission is hereby granted, without written agre ement and without license or royalty fees, to use, copy, modify, and distribute this software and its documentation for any purpose/) { 492 } elsif ($licensetext =~ /Permission is hereby granted, without written agre ement and without license or royalty fees, to use, copy, modify, and distribute this software and its documentation for any purpose/) {
493 $license = "MIT/X11 (BSD like) $license"; 493 $license = "MIT/X11 (BSD like) $license";
494 } 494 }
495 495
496 if ($licensetext =~ /This file is distributed under the University of Illin ois Open Source License/){ 496 if ($licensetext =~ /This file is distributed under the University of Illin ois Open Source License/){
497 $license = "University of Illinois/NCSA Open Source License (BSD like) $ license"; 497 $license = "University of Illinois/NCSA Open Source License (BSD like) $ license";
498 } 498 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 return $license; 630 return $license;
631 } 631 }
632 632
633 sub fatal($) { 633 sub fatal($) {
634 my ($pack,$file,$line); 634 my ($pack,$file,$line);
635 ($pack,$file,$line) = caller(); 635 ($pack,$file,$line) = caller();
636 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; 636 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d;
637 $msg =~ s/\n\n$/\n/; 637 $msg =~ s/\n\n$/\n/;
638 die $msg; 638 die $msg;
639 } 639 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698