blob: c92839e55643325bd8a04a865fcfe3b70c136bd8 [file] [log] [blame]
Bram Moolenaar0b39c3f2020-08-30 15:52:10 +02001" Invoked with the name "vim.pot" and a list of Vim script names.
2" Converts them to a .js file, stripping comments, so that xgettext works.
3
4set shortmess+=A
5
6for name in argv()[1:]
Christ van Willegence0ef912024-06-20 23:41:59 +02007 let jsname = fnamemodify(name, ":r:gs?\\~?_?:gs?\\.?_?:gs?/?__?:gs?\\?__?") .. ".js"
Bram Moolenaarfa573352020-09-04 13:53:00 +02008 exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
Bram Moolenaar0b39c3f2020-08-30 15:52:10 +02009endfor
10
11write
12last
13quit