Debian::LicenseReconcile::Filter::Shebang(3pm)

Debian::LicenseReconcile::Filter::Shebang3pm

Applies licensecheck to probable scripts

Usage

    use Debian::LicenseReconcile::Filter::Shebang;
    my $filter = Debian::LicenseReconcile::Filter::Rules->new(
        files_remaining=>[....],
    );
    my @info = $filter->get_info();

Version

Version 0.16

Subroutines/methods

get_info

Returns a list of hash references describing copyright and license information that should be checked against the copyright target. The results returned are those obtained by applying the rules in the config file in sequence and applying licensecheck to any file that matches one of the rules. Each rule might have the following fields:

- Glob (optional) - a file glob to limit which files the rule applies to.
- Contains (optional) - a piece of text which the file must contain for the rule to apply.
- Matches (optional) - an extended regular expression which the file contents must match for the rule to apply.
- MMagic (optional) - a string which must equal the magic value obtained from File::MMagic for the rule to apply.
- MaxVersion (optional) - an upstream version string after which the rule will not be applied. This is recommended unless you are certain that the rule is robust so that the rule will be regularly reviewed.

The default rules are to check any file starting with '#!', hence the name. Normal recursive use of licensecheck might not find these files as it might not have one of the file extensions that licensecheck looks for.

Releases

3 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8
  2. 9
  3. 10

Author

Nicholas Bamber, "<nicholas at periapt.co.uk>"

From license-reconcile 0.16 in Debian 10 (Buster). Parsed by carta from the page's man source.