view src/po/fixfilenames.vim @ 22290:9debc021e99e v8.2.1694

patch 8.2.1694: compiler warning for loss if data Commit: https://github.com/vim/vim/commit/573545a55afb5d42614cdb69f356abb32409270b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 16 15:46:08 2020 +0200 patch 8.2.1694: compiler warning for loss if data Problem: Compiler warning for loss if data. Solution: Add typecast.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Sep 2020 16:00:04 +0200
parents aa91480771fe
children
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