view src/po/fixfilenames.vim @ 29019:7cf98b61e022

Added tag v8.2.5031 for changeset 4a7650a894d4376260a962835646451aa5c79e09
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 May 2022 21:15: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