We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67538a4 commit 32e966fCopy full SHA for 32e966f
tools/get_lib_manpages.lua
@@ -34,7 +34,7 @@ local function output_man(d)
34
libname = name
35
end
36
local fname = "/tmp/" .. name .. ".3"
37
- local mf = dtsys.io_open(fname, "w")
+ local mf = dtsys.io_popen(fname, "w")
38
if mf then
39
mf:write(".TH " .. string.upper(name) .. " 3 \"\" \"\" \"Darktable " .. libname .. " functions\"\n")
40
for _,section in ipairs(keys) do
@@ -46,7 +46,7 @@ local function output_man(d)
46
mf:close()
47
if df.check_if_bin_exists("groff") then
48
if df.check_if_bin_exists("ps2pdf") then
49
- os.execute("groff -man " .. fname .. " | ps2pdf - " .. fname .. ".pdf")
+ dtsys.os_execute("groff -man " .. fname .. " | ps2pdf - " .. fname .. ".pdf")
50
else
51
log.msg(log.error, "Missing ps2pdf. Can't generate pdf man pages.")
52
0 commit comments