Make man page compression optional

This commit is contained in:
Michael Forney
2024-01-11 14:41:05 -08:00
parent a6a7143e38
commit 43fe67e5cb
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -7,6 +7,9 @@ return {
-- install prefix
prefix='',
-- compress man pages
gzman=true,
-- package/file selection
fs={
-- Each entry contains a list of packages, a list of patterns to
+5 -2
View File
@@ -498,8 +498,11 @@ function man(srcs, section)
if ext then base = base:sub(1, -(#ext + 2)) end
ext = section
end
build('gzip', out, src)
file('share/man/man'..ext..'/'..base..'.'..ext, '644', out)
if config.gzman ~= false then
build('gzip', out, src)
src = out
end
file('share/man/man'..ext..'/'..base..'.'..ext, '644', src)
end
end