view src/po/fixfilenames.vim @ 32186:6cfad8cc5f1d v9.0.1424

patch 9.0.1424: unused macros are defined Commit: https://github.com/vim/vim/commit/7ac36130e09d56c75134655a6b12218ddafeaa8b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 22 22:03:16 2023 +0000 patch 9.0.1424: unused macros are defined Problem: Unused macros are defined. Solution: Remove the unused macros.
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Mar 2023 23:15: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