view src/po/fixfilenames.vim @ 25456:b6b6400dee89

Added tag v8.2.3264 for changeset e7c02cbe701fc72be7e66e6b61a76743d6f2ce23
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Aug 2021 12:15:04 +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