summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJoshua Lock <jlock@vmware.com>2019-04-09 15:10:08 +0100
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-04-15 12:26:49 +0200
commit3b01f353b8533f2d66f7411c3513d9444ba68329 (patch)
tree70ef68d04ba588de02964de2489b9ffb4936c108 /util
parent32a775df9b720781220556549d7e52c45ebb562d (diff)
Add a check for history section location to find-doc-nits
Check that the HISTORY section is located after the SEE ALSO section, this is a much more frequent order in OpenSSL manual pages (and UNIX manual pages in general). Also check that SEE ALSO comes after EXAMPLES, so that the tool can ensure the correct manual section sequence. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 573ac8f2228241771f727ecd8ff10f54073536d3) Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8736)
Diffstat (limited to 'util')
-rwxr-xr-xutil/find-doc-nits4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits
index da62919454..7340782662 100755
--- a/util/find-doc-nits
+++ b/util/find-doc-nits
@@ -166,6 +166,10 @@ sub check()
# Check if EXAMPLES is located after RETURN VALUES section.
&check_section_location($filename, $contents, "RETURN VALUES", "EXAMPLES") if $filename =~ m|man3/|;
+ # Check if HISTORY is located after SEE ALSO
+ &check_section_location($filename, $contents, "SEE ALSO", "HISTORY") if $filename =~ m|man3/|;
+ # Check if SEE ALSO is located after EXAMPLES
+ &check_section_location($filename, $contents, "EXAMPLES", "SEE ALSO") if $filename =~ m|man3/|;
my $id = "${filename}:1:";