Page MenuHomeFreeBSD

Lua functions to handle make command output for specific FreeBSD ports targets
Needs ReviewPublic

Authored by tuukka.pasanen_ilmi.fi on Fri, Oct 24, 10:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 28, 5:22 AM
Unknown Object (File)
Fri, Oct 24, 7:58 PM
Unknown Object (File)
Fri, Oct 24, 3:35 PM
Unknown Object (File)
Fri, Oct 24, 2:41 PM
Unknown Object (File)
Fri, Oct 24, 2:13 PM
Unknown Object (File)
Fri, Oct 24, 2:07 PM
Unknown Object (File)
Fri, Oct 24, 1:31 PM
Subscribers

Details

Reviewers
bapt
Group Reviewers
portmgr
Summary

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.

Test Plan

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 .. "]")
end

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped