App::Licensecheck(3pm)

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.
EOF
    my $app = App::Licensecheck->new( top_lines => 0 );  # Parse whole files
    my @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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Jonas Smedegaard "<[email protected]>"

From licensecheck 3.3.9-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.