Lines Matching refs:license

24 licensecheck - simple license checker for source files
37 B<licensecheck> attempts to determine the license that applies to each file
51 the corresponding license information.
58 for license information. (Default is 60).
74 decide which files to check the license of.
85 <file><tab><license>[<tab><copyright>] so that it can be easily sorted
115 the license(s) in use. This is equivalent to the B<--lines> command line
284 my $license = '';
311 $license = parselicense($content);
313 print "$file\t$license";
319 print $license . "\n";
370 license information
372 should be parsed for license information
408 my $license = "";
429 $license = "GENERATED FILE";
433 $license = "LGPL$gplver$extrainfo $license";
437 $license = "AGPL$gplver$extrainfo $license";
441 $license = "GPL$gplver$extrainfo $license";
446 $license = "GPL$gplver$extrainfo $license";
450 $license = "GPL (unversioned/unknown version) $license";
454 $license = "QPL (part of Qt) $license";
456 $license = "QPL $license";
459 if ($licensetext =~ /opensource\.org\/licenses\/mit-license\.php/) {
460 $license = "MIT/X11 (BSD like) $license";
462 $license = "MIT/X11 (BSD like) $license";
463 } elsif ($licensetext =~ /Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify, and distribute this software and its documentation for any purpose/) {
464 $license = "MIT/X11 (BSD like) $license";
468 $license = "ISC $license";
473 $license = "BSD (4 clause) $license";
475 $license = "BSD (3 clause) $license";
477 $license = "BSD (2 clause) $license";
479 $license = "BSD $license";
484 $license = "MPL (v$1) $license";
488 $license = "Artistic (v$1) $license";
492 $license = "Artistic $license";
496 $license = "Perl $license";
500 $license = "Apache (v$1) $license";
504 $license = "Beerware $license";
507 if ($licensetext =~ /This source file is subject to version ([^ ]+) of the PHP license/) {
508 $license = "PHP (v$1) $license";
512 $license = "CeCILL $license";
516 $license = "CeCILL-$1 $license";
520 $license = "SGI Free Software License B $license";
524 $license = "Public domain $license";
528 $license = "CDDL " . ($1 ? "(v$2) " : '') . $license;
532 $license = "Ms-PL $license";
535 if ($licensetext =~ /Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license \(the \"Software\"\)/ or
537 $license = "BSL " . ($1 ? "(v$2) " : '') . $license;
541 $license = "PSF " . ($1 ? "(v$2) " : '') . $license;
546 $license = "zlib/libpng $license";
547 } elsif ($licensetext =~ /This code is released under the libpng license/) {
548 $license = "libpng $license";
552 $license = "WTFPL (v$1) $license";
556 $license = "WTFPL $license";
560 $license = "WTFPL $license";
563 $license = "UNKNOWN" if (!length($license));
566 $license =~ s/\s+$//;
568 return $license;