Software /
code /
prosody
Changeset
13065:ab546c5977ed
tools/tb2err: Rewrite prosody-modules paths to ../modules
This assumes you have community modules in ../modules as I do
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Apr 2023 12:55:08 +0200 |
parents | 13064:b172db27ffed |
children | 13066:4aa4a51a7a77 |
files | tools/tb2err |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/tb2err Sat Apr 08 12:54:26 2023 +0200 +++ b/tools/tb2err Sat Apr 08 12:55:08 2023 +0200 @@ -11,11 +11,13 @@ 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