contrib/autostyle replaced io.popen functions with wrapper

contrib/color_profile_manager    to properly quote windows commands so
contrib/fujifilm_dynamic_range   that they are sanitized for special
contrib/fujifilm_ratings         characters and spaces
contrib/geoJSON_export
contrib/geoToolbox
contrib/image_stack
contrib/image_time
contrib/kml_export
official/enfuse
tools/executable_manager
tools/get_lib_manpages
tools/get_libdoc
This commit is contained in:
Bill Ferguson
2024-06-04 23:43:21 -04:00
parent fe48d7498c
commit 038418b89f
13 changed files with 28 additions and 18 deletions

View File

@@ -7,6 +7,7 @@
local dt = require "darktable"
local du = require "lib/dtutils"
local df = require "lib/dtutils.file"
local dtsys = require "lib/dtutils.system"
local log = require "lib/dtutils.log"
local libname = nil
@@ -33,7 +34,7 @@ local function output_man(d)
libname = name
end
local fname = "/tmp/" .. name .. ".3"
local mf = io.open(fname, "w")
local mf = dtsys.io_open(fname, "w")
if mf then
mf:write(".TH " .. string.upper(name) .. " 3 \"\" \"\" \"Darktable " .. libname .. " functions\"\n")
for _,section in ipairs(keys) do
@@ -59,7 +60,7 @@ end
-- find the libraries
local output = io.popen("cd "..dt.configuration.config_dir.."/lua/lib ;find . -name \\*.lua -print | sort")
local output = dtsys.io_popen("cd "..dt.configuration.config_dir.."/lua/lib ;find . -name \\*.lua -print | sort")
-- loop through the libraries