blob: 04bc0791c0fa1d1a60b4f8cf7c8b2174f77e5bf7 [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:]
7 let jsname = fnamemodify(name, ":t:r") .. ".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