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 } elsif ($licensetext =~ /Permission to use, copy, modify, distribute, and s
ell this software and its documentation for any purpose is hereby granted withou
t fee/) { | 494 } elsif ($licensetext =~ /Permission to use, copy, modify, distribute, and s
ell this software and its documentation for any purpose is hereby granted withou
t fee/) { |
495 $license = "MIT/X11 (BSD like) $license"; | 495 $license = "MIT/X11 (BSD like) $license"; |
496 } elsif ($licensetext =~ /MIT .* License/) { | 496 } elsif ($licensetext =~ /MIT .* License/) { |
497 $license = "MIT/X11 (BSD like) $license"; | 497 $license = "MIT/X11 (BSD like) $license"; |
498 } | 498 } |
499 | 499 |
| 500 if ($licensetext =~ /This file is part of the Independent JPEG Group(')?s s
oftware.*For conditions of distribution and use, see the accompanying README fil
e/i) { |
| 501 $license = "Independent JPEG Group License $license"; |
| 502 } |
| 503 |
500 if ($licensetext =~ /the University of Illinois Open Source License/){ | 504 if ($licensetext =~ /the University of Illinois Open Source License/){ |
501 $license = "University of Illinois/NCSA Open Source License (BSD like) $
license"; | 505 $license = "University of Illinois/NCSA Open Source License (BSD like) $
license"; |
502 } | 506 } |
503 | 507 |
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) { | 508 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) { |
505 $license = "ISC $license"; | 509 $license = "ISC $license"; |
506 } | 510 } |
507 | 511 |
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/ || | 512 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/ || |
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/) { | 513 $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/) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 return $license; | 638 return $license; |
635 } | 639 } |
636 | 640 |
637 sub fatal($) { | 641 sub fatal($) { |
638 my ($pack,$file,$line); | 642 my ($pack,$file,$line); |
639 ($pack,$file,$line) = caller(); | 643 ($pack,$file,$line) = caller(); |
640 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; | 644 (my $msg = "$progname: fatal error at line $line:\n@_\n") =~ tr/\0//d; |
641 $msg =~ s/\n\n$/\n/; | 645 $msg =~ s/\n\n$/\n/; |
642 die $msg; | 646 die $msg; |
643 } | 647 } |
OLD | NEW |