aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tb2err
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-04-08 12:55:08 +0200
committerKim Alvefur <zash@zash.se>2023-04-08 12:55:08 +0200
commitbb26331c4b52b32d1e5195d235b3adb07cfa31fe (patch)
treeb1b9ba47f48bd3bc933719b42d236471ded9beda /tools/tb2err
parentfe0b8b9e2c729c64c6eddbed74e94660deef0201 (diff)
downloadprosody-bb26331c4b52b32d1e5195d235b3adb07cfa31fe.tar.gz
prosody-bb26331c4b52b32d1e5195d235b3adb07cfa31fe.zip
tools/tb2err: Rewrite prosody-modules paths to ../modules
This assumes you have community modules in ../modules as I do
Diffstat (limited to 'tools/tb2err')
-rwxr-xr-xtools/tb2err2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tb2err b/tools/tb2err
index 09a55d5e..63664cd3 100755
--- a/tools/tb2err
+++ b/tools/tb2err
@@ -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