Debian Codegraph @

README

raw
1 NAME
2 App::Licensecheck - functions for a simple license checker for source
3 files
4
5 VERSION
6 Version v3.3.9
7
8 SYNOPSIS
9 use Path::Tiny;
10 use App::Licensecheck;
11
12 my $tempfile = Path::Tiny->tempfile;
13
14 $tempfile->spew(<<EOF);
15 # Dummy file simply stating some copyright and license.
16 # Copyright (C) 2020, 2022 Foo Bar.
17 #
18 # This file is licensed under version 2 or later of the GPL.
19 EOF
20
21 my $app = App::Licensecheck->new( top_lines => 0 ); # Parse whole files
22
23 my @output = $app->parse($tempfile);
24
25 my $license = $output[0]; # => is "GPL-2.0-or-later"
26 my $copyrights = $output[1]; # => is "2020, 2022 Foo Bar."
27
28 DESCRIPTION
29 App::Licensecheck is the core of licensecheck script to check for licenses
30 of source files. See the script for casual usage.
31
32 AUTHOR
33 Jonas Smedegaard `<[email protected]>`
34
35 COPYRIGHT AND LICENSE
36 This program is based on the script "licensecheck" from the KDE SDK,
37 originally introduced by Stefan Westerfeld `<[email protected]>`.
38
39 Copyright © 2007, 2008 Adam D. Barratt
40
41 Copyright © 2012 Francesco Poli
42
43 Copyright © 2016-2022 Jonas Smedegaard
44
45 Copyright © 2017-2022 Purism SPC
46
47 This program is free software: you can redistribute it and/or modify it
48 under the terms of the GNU Affero General Public License as published by
49 the Free Software Foundation, either version 3, or (at your option) any
50 later version.
51
52 This program is distributed in the hope that it will be useful, but
53 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
54 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
55 License for more details.
56
57 You should have received a copy of the GNU Affero General Public License
58 along with this program. If not, see <https://www.gnu.org/licenses/>.
59