keg: fix normalize_pod2man_outputs! for compressed manpages

This commit is contained in:
Caleb Xu 2025-02-28 03:30:27 -05:00
parent 38385c8cbf
commit b5db95bee5
No known key found for this signature in database
GPG Key ID: 47E6040D07B8407D

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)