Bram Moolenaar | 0b39c3f | 2020-08-30 15:52:10 +0200 | [diff] [blame] | 1 | " Invoked with the name "vim.pot" and a list of Vim script names. |
| 2 | " Converts them to a .js file, stripping comments, so that xgettext works. |
| 3 | |
| 4 | set shortmess+=A |
| 5 | |
| 6 | for name in argv()[1:] |
| 7 | let jsname = fnamemodify(name, ":t:r") .. ".js" |
Bram Moolenaar | fa57335 | 2020-09-04 13:53:00 +0200 | [diff] [blame^] | 8 | exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+" |
Bram Moolenaar | 0b39c3f | 2020-08-30 15:52:10 +0200 | [diff] [blame] | 9 | endfor |
| 10 | |
| 11 | write |
| 12 | last |
| 13 | quit |