diff options
author | Rich Salz <rsalz@akamai.com> | 2019-11-01 16:26:05 -0400 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-11-10 18:58:50 +0100 |
commit | 1903a9b77af1aa289ce858de90790f3e2749fea9 (patch) | |
tree | 7a8caa4fa1775e377286ab4f3db4ea0eda37b7c0 /util | |
parent | db30f43242a216ebad0fd16fbef45fb7d3ab8de3 (diff) |
Fix L<xxx(1)> links to be L<openssl-xxx(1)>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/10328)
Diffstat (limited to 'util')
-rwxr-xr-x | util/find-doc-nits | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index f07929f946..687657bf9d 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -458,6 +458,15 @@ sub check { next if $target =~ m@\([1357]\)/.*>$@; # it has a section/anchor err($id, "Section missing in $target") } + # Check for proper links to commands. + while ( $contents =~ /L<([^>]*)\(1\)(?:\/.*)?>/g ) { + my $target = $1; + next if $target =~ /openssl-?/; + next if -f "doc/man1/$target.pod"; + # TODO: Filter out "foreign manual" links. + next if $target =~ /ps|apropos|sha1sum|procmail|perl/; + err($id, "Bad command link L<$target(1)>"); + } # Check for proper in-man-3 API links. while ( $contents =~ /L<([^>]*)\(3\)(?:\/.*)?>/g ) { my $target = $1; |