view src/po/fixfilenames.vim @ 29417:1d47d224a1cc v9.0.0050

patch 9.0.0050: split else-of is confusing Commit: https://github.com/vim/vim/commit/b26592a84c8f578c8fbe83cf02ebb47453de1683 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 12 17:34:31 2022 +0100 patch 9.0.0050: split else-of is confusing Problem: Split else-of is confusing. Solution: Join the lines. (closes https://github.com/vim/vim/issues/10696)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jul 2022 18:45: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