view src/po/fixfilenames.vim @ 24111:33c1e030ceae

Added tag v8.2.2596 for changeset 03438d77d8ab62445c65d6c9bd23044db8b94900
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Mar 2021 16:00:04 +0100
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