Make util/find-doc-nits runnable from the build tree
authorRichard Levitte <levitte@openssl.org>
Sat, 8 Feb 2020 19:15:06 +0000 (20:15 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 18 Feb 2020 04:21:42 +0000 (05:21 +0100)
commit1624ebdb159c780e06f43f5acb8d03e3f40ffe5c
treee24501a638ff2f6d3da56dd050d1916945edde6b
parent86cde3187d9acf6f331daff79ff2de87e86c6dc7
Make util/find-doc-nits runnable from the build tree

Because we generate an increasing number of POD files, some of them
end up in the build tree.  This makes it difficult for find-doc-nits
to work as desired when the build tree is separate from the source
tree.

The best supported way to make it work in such an environment is to
run it from the build tree and let it use the build information from
configdata.pm to find all the POD files.  To make this smooth enough,
we add a function 'files' that returns an array of file names
corresponding to criteria from the caller.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11045)
Configurations/unix-Makefile.tmpl
util/find-doc-nits