From: Matt Caswell Date: Wed, 7 Jun 2023 11:10:41 +0000 (+0100) Subject: Allow man7 pages to not have a DESCRIPTION section X-Git-Tag: openssl-3.2.0-alpha1~649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b6865be563810fad17e2d925304fde8d7eaf30;p=thirdparty%2Fopenssl.git Allow man7 pages to not have a DESCRIPTION section For tutorial type pages it doesn't make any sense to have a DESCRIPTION section. Reviewed-by: Viktor Dukhovni Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21133) --- diff --git a/util/find-doc-nits b/util/find-doc-nits index 795c59800f3..877838f00e6 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -86,10 +86,10 @@ die "Argument of -m option may contain only man1, man3, man5, and/or man7" my @sections = ( split /[, ]/, $opt_m ); my %mandatory_sections = ( - '*' => [ 'NAME', 'DESCRIPTION', 'COPYRIGHT' ], - 1 => [ 'SYNOPSIS', 'OPTIONS' ], - 3 => [ 'SYNOPSIS', 'RETURN VALUES' ], - 5 => [ ], + '*' => [ 'NAME', 'COPYRIGHT' ], + 1 => [ 'DESCRIPTION', 'SYNOPSIS', 'OPTIONS' ], + 3 => [ 'DESCRIPTION', 'SYNOPSIS', 'RETURN VALUES' ], + 5 => [ 'DESCRIPTION' ], 7 => [ ] );