mirror of
https://github.com/oasislinux/oasis.git
synced 2026-06-13 15:37:07 +02:00
Make man page compression optional
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user