annotate src/po/Make_ming.mak @ 22343:9f5a84baa464 v8.2.1720

patch 8.2.1720: Vim9: memory leak with heredoc that isn't executed Commit: https://github.com/vim/vim/commit/078269bdce7e75d5693c7313d92a229786bb95ee Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 21 20:35:55 2020 +0200 patch 8.2.1720: Vim9: memory leak with heredoc that isn't executed Problem: Vim9: memory leak with heredoc that isn't executed. (Dominique Pell?) Solution: Don't clear the list items. (closes #6991)
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Sep 2020 20:45:04 +0200
parents aa91480771fe
children 2fc568b082ef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 # Makefile for the Vim message translations for mingw32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # Read the README_ming.txt file before using it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Use at your own risk but with care, it could even kill your canary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 # Previous to all you must have the environment variable LANGUAGE set to your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # language (xx) and add it to the next three lines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
13 ifndef VIMRUNTIME
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
14 ifeq (sh.exe, $(SHELL))
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
15 VIMRUNTIME = ..\..\runtime
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
16 else
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
17 VIMRUNTIME = ../../runtime
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
18 endif
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
19 endif
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
20
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
21 # get LANGUAGES, MOFILES and MOCONVERTED
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
22 include Make_all.mak
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 PACKAGE = vim
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
25 ifeq (sh.exe, $(SHELL))
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
26 VIM = ..\vim
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
27 else
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
28 VIM = ../vim
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
29 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 # Uncomment one of the lines below or modify it to put the path to your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 # gettex binaries; I use the first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 #GETTEXT_PATH = C:/gettext.win32/bin/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 #GETTEXT_PATH = C:/cygwin/bin/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
37 ifeq (sh.exe, $(SHELL))
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
38 MSGFMT = set OLD_PO_FILE_INPUT=yes && $(GETTEXT_PATH)msgfmt -v
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
39 XGETTEXT = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)xgettext
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
40 MSGMERGE = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)msgmerge
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
41 else
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
42 MSGFMT = LANG=C OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
43 XGETTEXT = LANG=C OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)xgettext
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
44 MSGMERGE = LANG=C OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)msgmerge
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
45 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
47 ifeq (sh.exe, $(SHELL))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 MKD = mkdir
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
52 else
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
53 MV = mv -f
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
54 CP = cp -f
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
55 RM = rm -f
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
56 MKD = mkdir -p
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
57 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 .SUFFIXES: .po .mo .pot
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
61 .PHONY: first_time all install install-all clean $(LANGUAGES)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 .po.mo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
66 all: $(MOFILES) $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
68 PO_INPUTLIST = \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
69 $(wildcard ../*.c) \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
70 ../if_perl.xs \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
71 ../GvimExt/gvimext.cpp \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
72 ../errors.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
73 ../globals.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
74 ../if_py_both.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
75 ../vim.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
76 gvim.desktop.in \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
77 vim.desktop.in
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
78
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
79 PO_VIM_INPUTLIST = \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
80 ../../runtime/optwin.vim
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
81
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
82 PO_VIM_JSLIST = \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
83 optwin.js
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
85 first_time: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
86 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
87 $(XGETTEXT) --default-domain=$(LANGUAGE) \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
88 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 $(PO_INPUTLIST) $(PO_VIM_JSLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
89 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
90 $(RM) *.js
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
91
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
92 $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
93 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 $(XGETTEXT) --default-domain=$(PACKAGE) \
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
95 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 $(PO_INPUTLIST) $(PO_VIM_JSLIST)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 $(MV) $(PACKAGE).po $(PACKAGE).pot
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
97 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
98 $(RM) *.js
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
99
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
100 # Don't add a dependency here, we only want to update the .po files manually
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
101 $(LANGUAGES):
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
102 @$(MAKE) -f Make_ming.mak $(PACKAGE).pot GETTEXT_PATH=$(GETTEXT_PATH)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
113 ifeq (sh.exe, $(SHELL))
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
114 install-all: all
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
115 FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l $(MKD) $(VIMRUNTIME)\lang\%%l
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
116 FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l\LC_MESSAGES $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
117 FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo
12748
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
118 else
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
119 install-all: all
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
120 for TARGET in $(LANGUAGES); do \
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
121 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
122 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
123 done
f48a1c8c5961 patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents: 7374
diff changeset
124 endif
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
125
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 $(RM) *.pot