blob: 2344b3bdc42b732559e5aba7f28ba7151e09ca04 [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
RestorerZ96509102024-07-11 21:14:15 +02006let s:namenum = 0
7for s:name in argv()[1:]
8 let s:jsname = fnamemodify(s:name, ":t:r") .. s:namenum .. ".js"
9 exe "%s+" .. s:jsname .. "+" .. substitute(s:name, '\\', '/', 'g') .. "+ge"
10 let s:namenum +=1
Bram Moolenaar0b39c3f2020-08-30 15:52:10 +020011endfor
12
13write
14last
15quit