summaryrefslogtreecommitdiff
path: root/ninja.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-01-11 14:41:05 -0800
committerMichael Forney <mforney@mforney.org>2024-02-07 20:50:18 -0800
commit43fe67e5cbb60e035fffc44cf9566765f8d07fc7 (patch)
treef35adf061baeb6e2400cd480c7f8af7a050f5a21 /ninja.lua
parenta6a7143e38292b8db14edef008fe8cd61ebf300b (diff)
Make man page compression optional
Diffstat (limited to 'ninja.lua')
-rw-r--r--ninja.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/ninja.lua b/ninja.lua
index ed73a955..7481be4d 100644
--- a/ninja.lua
+++ b/ninja.lua
@@ -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