view src/po/fixfilenames.vim @ 28533:b2f93ab72fdc

Added tag v8.2.4790 for changeset 11387538e7c481cb723d74feb6898dcb48bed0d0
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Apr 2022 16:45:03 +0200
parents aa91480771fe
children 04563887d70e
line wrap: on
line source

" 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