Date: Thu, 30 Oct 2025 16:15:29 GMT From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 873f0864dbf2 - releng/15.0 - mandoc: Also run makewhatis for /usr/share/openssl/man Message-ID: <202510301615.59UGFTJU023053@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=873f0864dbf269768f1ed17b3fa140a4760a07ae commit 873f0864dbf269768f1ed17b3fa140a4760a07ae Author: Lexi Winter <ivy@FreeBSD.org> AuthorDate: 2025-10-25 17:30:03 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-10-30 16:14:53 +0000 mandoc: Also run makewhatis for /usr/share/openssl/man We use a pkg(8) trigger to run makewhatis for /usr/share/man when manpages are updated, but this doesn't cover /usr/share/openssl/man. Rewrite the trigger to process a list of directories instead of a single directory, and include /usr/share/openssl/man in the list. Approved by: re (cperciva) MFC after: 3 days Reviewed by: emaste Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D53064 (cherry picked from commit 450fb637f453c3722aa9f0aeb369e2aa2f5a5001) (cherry picked from commit 37effd917ed8511553d4160c6f5b249fac12045e) --- usr.bin/mandoc/mandoc.ucl | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/usr.bin/mandoc/mandoc.ucl b/usr.bin/mandoc/mandoc.ucl index f320b6f547fd..75b8123d55cc 100644 --- a/usr.bin/mandoc/mandoc.ucl +++ b/usr.bin/mandoc/mandoc.ucl @@ -1,10 +1,14 @@ -path_glob: "/usr/share/man/*" +path_glob: [ + "/usr/share/man/*", + "/usr/share/openssl/man/*", +] cleanup: { type: lua sandbox: false script: <<EOD os.remove("/usr/share/man/mandoc.db") + os.remove("/usr/share/openssl/man/mandoc.db") EOD } @@ -12,7 +16,17 @@ trigger: { type: lua sandbox: false script: <<EOD - print("Generating apropos(1) database...") - pkg.exec({"/usr/bin/makewhatis", "/usr/share/man"}) + + local dirs = { + "/usr/share/man", + "/usr/share/openssl/man", + } + + for _,dir in ipairs(dirs) do + if pkg.stat(dir) then + print("Generating apropos(1) database for "..dir.."...") + pkg.exec({"/usr/bin/makewhatis", dir}) + end + end EOD }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510301615.59UGFTJU023053>
