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

set shortmess+=A

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

write
last
quit