From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- src/po/fixfilenames.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/po/fixfilenames.vim (limited to 'src/po/fixfilenames.vim') diff --git a/src/po/fixfilenames.vim b/src/po/fixfilenames.vim new file mode 100644 index 0000000..04bc079 --- /dev/null +++ b/src/po/fixfilenames.vim @@ -0,0 +1,13 @@ +" Invoked with the name "vim.pot" and a list of Vim script names. +" Converts them to a .js file, stripping comments, so that xgettext works. + +set shortmess+=A + +for name in argv()[1:] + let jsname = fnamemodify(name, ":t:r") .. ".js" + exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+" +endfor + +write +last +quit -- cgit v1.2.3