#!/usr/bin/perl
use
5.010001;
my
$verbose
= 1;
my
$result
= Getopt::Long::GetOptions(
'verbose=i'
=> \
$verbose
);
die
"usage $PROGRAM_NAME [--verbose=n] file ...\n"
if
not
$result
;
my
$file_count
;
my
@license_problems
;
if
(
$#ARGV
> 0 ) {
$file_count
=
@ARGV
;
@license_problems
=
map
{ Marpa::R3::License::file_license_problems(
$_
,
$verbose
) }
@ARGV
;
}
else
{
my
$manifest
= [
keys
%{ ExtUtils::Manifest::maniread() } ];
$file_count
= $
@license_problems
=
Marpa::R3::License::license_problems(
$manifest
,
$verbose
);
}
print
join
"\n"
,
@license_problems
;
my
$problem_count
=
scalar
@license_problems
;
$problem_count
and
say
+(
q{=}
x 50 );
say
"Found $problem_count license language problems after examining $file_count files"
;