tools/tb2err: Rewrite prosody-modules paths to ../modules

This assumes you have community modules in ../modules as I do
This commit is contained in:
Kim Alvefur 2023-04-08 12:55:08 +02:00
parent fe0b8b9e2c
commit bb26331c4b

View file

@ -11,11 +11,13 @@ for line in io.lines() do
or src:match("/()net/")
or src:match("/()util/")
or src:match("/()modules/")
or src:match("/()prosody%-modules/")
or src:match("/()plugins/")
or src:match("/()prosody[ctl]*$")
if cut then
src = src:sub(cut);
end
src = src:gsub("prosody%-modules/", "../modules/")
src = src:gsub("^modules/", "plugins/")
io.write(src, err, "\n");
end