view src/po/fixfilenames.vim @ 25771:7dbd3a65a04b v8.2.3421

patch 8.2.3421: a bit of code is not covered by tests Commit: https://github.com/vim/vim/commit/d176ca3dde47c11aae0376c31b7e1ba0939c8c6c Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Thu Sep 9 20:45:34 2021 +0200 patch 8.2.3421: a bit of code is not covered by tests Problem: A bit of code is not covered by tests. Solution: Add a few more test cases. (Dominique Pell?, closes https://github.com/vim/vim/issues/8857)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Sep 2021 21:00: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