| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 } | 564 } |
| 565 | 565 |
| 566 if ($licensetext =~ /under the terms of the CeCILL-([^ ]+) /) { | 566 if ($licensetext =~ /under the terms of the CeCILL-([^ ]+) /) { |
| 567 $license = "CeCILL-$1 $license"; | 567 $license = "CeCILL-$1 $license"; |
| 568 } | 568 } |
| 569 | 569 |
| 570 if ($licensetext =~ /under the SGI Free Software (B License|License B)/) { | 570 if ($licensetext =~ /under the SGI Free Software (B License|License B)/) { |
| 571 $license = "SGI Free Software License B $license"; | 571 $license = "SGI Free Software License B $license"; |
| 572 } | 572 } |
| 573 | 573 |
| 574 if ($licensetext =~ /in the public domain/i) { | 574 if ($licensetext =~ /(in|into) the public domain/i) { |
| 575 $license = "Public domain $license"; | 575 $license = "Public domain $license"; |
| 576 } | 576 } |
| 577 | 577 |
| 578 if ($licensetext =~ /terms of the Common Development and Distribution Licens
e(, Version ([^(]+))? \(the License\)/) { | 578 if ($licensetext =~ /terms of the Common Development and Distribution Licens
e(, Version ([^(]+))? \(the License\)/) { |
| 579 $license = "CDDL " . ($1 ? "(v$2) " : '') . $license; | 579 $license = "CDDL " . ($1 ? "(v$2) " : '') . $license; |
| 580 } | 580 } |
| 581 | 581 |
| 582 if ($licensetext =~ /Microsoft Permissive License \(Ms-PL\)/) { | 582 if ($licensetext =~ /Microsoft Permissive License \(Ms-PL\)/) { |
| 583 $license = "Ms-PL $license"; | 583 $license = "Ms-PL $license"; |
| 584 } | 584 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 return $license; | 634 return $license; |
| 635 } | 635 } |
| 636 | 636 |
| 637 sub fatal($) { | 637 sub fatal($) { |
| 638 my ($pack,$file,$line); | 638 my ($pack,$file,$line); |
| 639 ($pack,$file,$line) = caller(); | 639 ($pack,$file,$line) = caller(); |
| 640 (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; |
| 641 $msg =~ s/\n\n$/\n/; | 641 $msg =~ s/\n\n$/\n/; |
| 642 die $msg; | 642 die $msg; |
| 643 } | 643 } |
| OLD | NEW |