Diff adds Lua functions designed to process and manage the output of the make command within FreeBSD ports, with a focus on handling output from specific targets.
Details
Details
After patch is applied then it can be tested with Lua script which under this, go to some ports package and run with command LUA_PATH="/usr/ports/Mk/LuaScripts/?.lua;;" /usr/libexec/flua /usr/ports/Mk/LuaScripts/example.lua:
Testing script (example.lua):
local Logging = require("logging")
logger = Logging.new(nil, "DEBUG", true)
require("ports-make")
output = ports_make_target("describe")
print(output)
output_table = ports_make_target_as_table("describe-json")
for _, cur_string in ipairs(output_table) do
print("Output line: [" .. cur_string .. "]")
endDiff Detail
Diff Detail
- Repository
- R11 FreeBSD ports repository
- Lint
Lint Skipped - Unit
Tests Skipped