App::Licensecheck3pm
Functions for a simple license checker for source files
Usage
use Path::Tiny;use App::Licensecheck;my $tempfile = Path::Tiny->tempfile;$tempfile->spew(<<EOF);# Dummy file simply stating some copyright and license.# Copyright (C) 2020, 2022 Foo Bar.## This file is licensed under version 2 or later of the GPL.EOFmy $app = App::Licensecheck->new( top_lines => 0 ); # Parse whole filesmy @output = $app->parse($tempfile);my $license = $output[0]; # => is "GPL-2.0-or-later"my $copyrights = $output[1]; # => is "2020, 2022 Foo Bar."
Version
Version v3.3.9
Overview
App::Licensecheck is the core of licensecheck script to check for licenses of source files. See the script for casual usage.
Copyright and license
This program is based on the script "licensecheck" from the KDE SDK, originally introduced by Stefan Westerfeld "<[email protected]>".
Copyright © 2007, 2008 Adam D. BarrattCopyright © 2012 Francesco PoliCopyright © 2016-2022 Jonas SmedegaardCopyright © 2017-2022 Purism SPC
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.