Skip to content

Commit 32e966f

Browse files
committed
tools/git_lib_manpages code cleanup
1 parent 67538a4 commit 32e966f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/get_lib_manpages.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ local function output_man(d)
3434
libname = name
3535
end
3636
local fname = "/tmp/" .. name .. ".3"
37-
local mf = dtsys.io_open(fname, "w")
37+
local mf = dtsys.io_popen(fname, "w")
3838
if mf then
3939
mf:write(".TH " .. string.upper(name) .. " 3 \"\" \"\" \"Darktable " .. libname .. " functions\"\n")
4040
for _,section in ipairs(keys) do
@@ -46,7 +46,7 @@ local function output_man(d)
4646
mf:close()
4747
if df.check_if_bin_exists("groff") then
4848
if df.check_if_bin_exists("ps2pdf") then
49-
os.execute("groff -man " .. fname .. " | ps2pdf - " .. fname .. ".pdf")
49+
dtsys.os_execute("groff -man " .. fname .. " | ps2pdf - " .. fname .. ".pdf")
5050
else
5151
log.msg(log.error, "Missing ps2pdf. Can't generate pdf man pages.")
5252
end

0 commit comments

Comments
 (0)