view src/po/fixfilenames.vim @ 22045:47ff9e5be532 v8.2.1572

patch 8.2.1572: Vim9: expand() does not take "true" as argument Commit: https://github.com/vim/vim/commit/551d25e76545df785a9f62df52f34bc1dd368bfb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 2 21:37:56 2020 +0200 patch 8.2.1572: Vim9: expand() does not take "true" as argument Problem: Vim9: expand() does not take "true" as argument. Solution: Use tv_get_bool_chk(). (closes https://github.com/vim/vim/issues/6819)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Sep 2020 21:45:04 +0200
parents 52e970719f4b
children aa91480771fe
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 .. "+" .. name .. "+"
endfor

write
last
quit