Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 } |
| 499 | 499 |
| 500 if ($licensetext =~ /This file is dual licensed under the MIT and the Unive rsity of Illinois Open Source License/){ | |
| 501 $license = "dual license: MIT | University of Illinois/NCSA Open Source License (BSD like) $license"; | |
|
Paweł Hajdan Jr.
2013/12/20 08:26:09
There's no need to include "dual license" in the t
Alexander Potapenko
2013/12/20 08:39:44
Removed "dual license".
| |
| 502 } | |
| 503 | |
| 500 if ($licensetext =~ /Permission to use, copy, modify, and(\/or)? distribute this software (and its documentation )?for any purpose (with or )?without fee i s hereby granted, provided.*(copyright|entire) notice.*all copies/i) { | 504 if ($licensetext =~ /Permission to use, copy, modify, and(\/or)? distribute this software (and its documentation )?for any purpose (with or )?without fee i s hereby granted, provided.*(copyright|entire) notice.*all copies/i) { |
| 501 $license = "ISC $license"; | 505 $license = "ISC $license"; |
| 502 } | 506 } |
| 503 | 507 |
| 504 if ($licensetext =~ /THIS SOFTWARE IS PROVIDED .*AS IS AND ANY EXPRESS OR IM PLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCH ANTABILITY/ || | 508 if ($licensetext =~ /THIS SOFTWARE IS PROVIDED .*AS IS AND ANY EXPRESS OR IM PLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCH ANTABILITY/ || |
| 505 $licensetext =~ /THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHA NTABIL- ITY/) { | 509 $licensetext =~ /THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHA NTABIL- ITY/) { |
| 506 if ($licensetext =~ /All advertising materials mentioning features or us e of this software must display the following/) { | 510 if ($licensetext =~ /All advertising materials mentioning features or us e of this software must display the following/) { |
| 507 $license = "BSD (4 clause) $license"; | 511 $license = "BSD (4 clause) $license"; |
| 508 } elsif ($licensetext =~ /be used to endorse or promote products derived from this software/) { | 512 } elsif ($licensetext =~ /be used to endorse or promote products derived from this software/) { |
| 509 $license = "BSD (3 clause) $license"; | 513 $license = "BSD (3 clause) $license"; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 630 return $license; | 634 return $license; |
| 631 } | 635 } |
| 632 | 636 |
| 633 sub fatal($) { | 637 sub fatal($) { |
| 634 my ($pack,$file,$line); | 638 my ($pack,$file,$line); |
| 635 ($pack,$file,$line) = caller(); | 639 ($pack,$file,$line) = caller(); |
| 636 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; | 640 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; |
| 637 $msg =~ s/\n\n$/\n/; | 641 $msg =~ s/\n\n$/\n/; |
| 638 die $msg; | 642 die $msg; |
| 639 } | 643 } |
| OLD | NEW |