Make check_example_location() in find-doc-nits generic
authorJoshua Lock <jlock@vmware.com>
Tue, 9 Apr 2019 13:53:58 +0000 (14:53 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Mon, 15 Apr 2019 10:26:49 +0000 (12:26 +0200)
commit32a775df9b720781220556549d7e52c45ebb562d
tree8de8f3d64a7856c170e04ff50668e9c2256fba93
parenta345fa370e6acd1293e7370a85266e87dc7ebc38
Make check_example_location() in find-doc-nits generic

Change to check_section_location(), a generic function to ensure that
section SECTION appears before section BEFORE in the man pages.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 95f92d57755a9bfc83135a585da69d497f7293d9)

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8736)
util/find-doc-nits