mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
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. MFC after: 3 days Reviewed by: emaste Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D53064
This commit is contained in:
parent
bf28c98f14
commit
450fb637f4
1 changed files with 17 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue