xref: /vim-8.2.3635/src/po/fixfilenames.vim (revision fa57335e)
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
4set shortmess+=A
5
6for name in argv()[1:]
7  let jsname = fnamemodify(name, ":t:r") .. ".js"
8  exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
9endfor
10
11write
12last
13quit
14