summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-08-29 18:12:17 +0200
committerRichard Levitte <levitte@openssl.org>2019-09-04 17:35:51 +0200
commitbc5a80910dccbc1e417f96bb7f0a3814d3ad5a4d (patch)
treeaa76d9e85ccac9ab8cbae5ae15e0d682c94456b8 /util
parentMove libapps.a source to apps/lib (diff)
downloadopenssl-bc5a80910dccbc1e417f96bb7f0a3814d3ad5a4d.tar.xz
openssl-bc5a80910dccbc1e417f96bb7f0a3814d3ad5a4d.zip
Handle the renamed command POD files in find-doc-nits
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9729)
Diffstat (limited to 'util')
-rwxr-xr-xutil/find-doc-nits17
1 files changed, 10 insertions, 7 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits
index 9126e73586..d6dfa5a0dc 100755
--- a/util/find-doc-nits
+++ b/util/find-doc-nits
@@ -533,6 +533,7 @@ my %skips = (
sub checkflags() {
my $cmd = shift;
+ my $doc = shift;
my %cmdopts;
my %docopts;
my $ok = 1;
@@ -548,8 +549,8 @@ sub checkflags() {
close CFH;
# Get the list of flags from the synopsis
- open CFH, "<doc/man1/$cmd.pod"
- || die "Can't open $cmd.pod, $!";
+ open CFH, "<$doc"
+ || die "Can't open $doc, $!";
while ( <CFH> ) {
chop;
last if /DESCRIPTION/;
@@ -617,13 +618,15 @@ if ( $opt_c ) {
close FH;
# See if each has a manpage.
- foreach ( @commands ) {
- next if $_ eq 'help' || $_ eq 'exit';
- if ( ! -f "doc/man1/$_.pod" ) {
- print "doc/man1/$_.pod does not exist\n";
+ foreach my $cmd ( @commands ) {
+ next if $cmd eq 'help' || $cmd eq 'exit';
+ my $doc = "doc/man1/$cmd.pod";
+ $doc = "doc/man1/openssl-$cmd.pod" if -f "doc/man1/openssl-$cmd.pod";
+ if ( ! -f "$doc" ) {
+ print "$doc does not exist\n";
$ok = 0;
} else {
- $ok = 0 if not &checkflags($_);
+ $ok = 0 if not &checkflags($cmd, $doc);
}
}