Bram Moolenaar | 0b39c3f | 2020-08-30 15:52:10 +0200 | [diff] [blame^] | 1 | " 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 | |||||
4 | set shortmess+=A | ||||
5 | |||||
6 | for name in argv()[1:] | ||||
7 | let jsname = fnamemodify(name, ":t:r") .. ".js" | ||||
8 | exe "%s+" .. jsname .. "+" .. name .. "+" | ||||
9 | endfor | ||||
10 | |||||
11 | write | ||||
12 | last | ||||
13 | quit |