mirror of
https://github.com/curl/curl.git
synced 2026-06-07 19:14:16 +03:00
test1140.pl: enable strict/warnings, fix them
This commit is contained in:
parent
d672bbd876
commit
d541cd3999
1 changed files with 6 additions and 1 deletions
|
|
@ -26,7 +26,10 @@
|
|||
# scan manpages to find basic syntactic problems such as unbalanced \f
|
||||
# codes or references to non-existing curl manpages.
|
||||
|
||||
my $docsroot = $ARGV[0];
|
||||
use strict;
|
||||
use warnings 'FATAL' => 'all';
|
||||
|
||||
my $docsroot = $ARGV[0] || '.';
|
||||
|
||||
if(!$docsroot || ($docsroot eq "-g")) {
|
||||
print "Usage: test1140.pl <docs root dir> [manpages]\n";
|
||||
|
|
@ -40,6 +43,8 @@ my @f = @ARGV;
|
|||
|
||||
my %manp;
|
||||
|
||||
my $errors = 0;
|
||||
|
||||
sub manpresent {
|
||||
my ($man) = @_;
|
||||
if($manp{$man}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue