view src/po/fixfilenames.vim @ 27227:6ce83b3745c0 v8.2.4142

patch 8.2.4142: build failure with normal features without persistent undo Commit: https://github.com/vim/vim/commit/b4868eddd9cdc7086c88a7a3699dd435d34ae904 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 19 11:24:40 2022 +0000 patch 8.2.4142: build failure with normal features without persistent undo Problem: Build failure with normal features without persistent undo. Solution: Adjust #ifdef. (closes https://github.com/vim/vim/issues/9557)
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Jan 2022 12:30:05 +0100
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