Merge pull request #19399 from Homebrew/pod2man-shim-fix

keg: fix normalize_pod2man_outputs! for compressed manpages
This commit is contained in:
Caleb Xu 2025-02-28 13:48:52 +00:00 committed by GitHub
commit b390a4db95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -556,7 +556,8 @@ class Keg
end
def normalize_pod2man_outputs!
manpages = Dir[path/"share/man/*/*"]
# Only process uncompressed manpages, which end in a digit
manpages = Dir[path/"share/man/*/*.[1-9]"]
generated_regex = /^\.\\"\s*Automatically generated by .*\n/
manpages.each do |f|
manpage = Pathname.new(f)