logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 59de97e9412dab937702d9d9d1f91fa6c6fcb562
parent 1a287f0fbda34a390cf85eb1e16c5e1f6c6871a9
Author: Randy Palamar <randy@rnpnr.xyz>
Date:   Thu,  8 Feb 2024 05:54:13 -0700

man: don't duplicate section extension

Diffstat:

Mninja.lua10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ninja.lua b/ninja.lua @@ -494,15 +494,15 @@ function man(srcs, section) local base = src:match('[^/]*$') local ext = base:match('%.([^.]*)$') - if section then - if ext then base = base:sub(1, -(#ext + 2)) end - ext = section - end + if ext then base = base:sub(1, -(#ext + 2)) end + if section then ext = section end + local path = 'share/man/man'..ext..'/'..base..'.'..ext if config.gzman ~= false then build('gzip', out, src) src = out + path = path..'.gz' end - file('share/man/man'..ext..'/'..base..'.'..ext, '644', src) + file(path, '644', src) end end