summaryrefslogtreecommitdiffstats
path: root/src/po/fixfilenames.vim
blob: 04bc0791c0fa1d1a60b4f8cf7c8b2174f77e5bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Invoked with the name "vim.pot" and a list of Vim script names.
" Converts them to a .js file, stripping comments, so that xgettext works.

set shortmess+=A

for name in argv()[1:]
  let jsname = fnamemodify(name, ":t:r") .. ".js"
  exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
endfor

write
last
quit