view src/po/fixfilenames.vim @ 30785:02b5d6f20db2 v9.0.0727

patch 9.0.0727: help in the repository differs from patched version too much Commit: https://github.com/vim/vim/commit/7c6cd443757348aa987eed87506549ab6b2079fe Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 11 21:54:04 2022 +0100 patch 9.0.0727: help in the repository differs from patched version too much Problem: Help in the repository differs from patched version too much. Solution: Make a patch for a few help files.
author Bram Moolenaar <Bram@vim.org>
date Tue, 11 Oct 2022 23:00:05 +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