Mercurial > vim
annotate src/po/Make_ming.mak @ 8432:6af4329b5592 v7.4.1507
commit https://github.com/vim/vim/commit/4e329fcaf7122370a6d1815a30aaf29476d3f722
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 7 15:24:03 2016 +0100
patch 7.4.1507
Problem: Crash when starting a job fails.
Solution: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 07 Mar 2016 15:30:05 +0100 |
parents | 7e367104f6b6 |
children | f48a1c8c5961 |
rev | line source |
---|---|
7 | 1 # Makefile for the Vim message translations for mingw32 |
2 # | |
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es> | |
4 # | |
5 # Read the README_ming.txt file before using it. | |
6 # | |
7 # Use at your own risk but with care, it could even kill your canary. | |
8 # | |
9 # Previous to all you must have the environment variable LANGUAGE set to your | |
10 # language (xx) and add it to the next three lines. | |
11 # | |
12 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
13 ifndef VIMRUNTIME |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
14 VIMRUNTIME = ..\..\runtime |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
15 endif |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
16 |
434 | 17 LANGUAGES = \ |
18 af \ | |
19 ca \ | |
20 cs \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
21 cs.cp1250 \ |
434 | 22 de \ |
23 en_GB \ | |
1621 | 24 eo \ |
434 | 25 es \ |
1621 | 26 fi \ |
434 | 27 fr \ |
28 ga \ | |
29 it \ | |
30 ja \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
31 ja.euc-jp \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
32 ja.sjis \ |
434 | 33 ko \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
34 ko.UTF-8 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
35 nb \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
36 nl \ |
434 | 37 no \ |
38 pl \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
39 pl.cp1250 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
40 pl.UTF-8 \ |
1698 | 41 pt_BR \ |
434 | 42 ru \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
43 ru.cp1251 \ |
434 | 44 sk \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
45 sk.cp1250 \ |
434 | 46 sv \ |
47 uk \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
48 uk.cp1251 \ |
434 | 49 vi \ |
50 zh_CN \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
51 zh_CN.cp936 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
52 zh_CN.UTF-8 \ |
434 | 53 zh_TW \ |
54 zh_TW.UTF-8 \ | |
55 | |
56 MOFILES = \ | |
57 af.mo \ | |
58 ca.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
59 cs.cp1250.mo \ |
434 | 60 cs.mo \ |
61 de.mo \ | |
62 en_GB.mo \ | |
1621 | 63 eo.mo \ |
434 | 64 es.mo \ |
1621 | 65 fi.mo \ |
434 | 66 fr.mo \ |
67 ga.mo \ | |
68 it.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
69 ja.euc-jp.mo \ |
434 | 70 ja.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
71 ja.sjis.mo \ |
434 | 72 ko.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
73 ko.UTF-8.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
74 nb.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
75 nl.mo \ |
434 | 76 no.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
77 pl.cp1250.mo \ |
434 | 78 pl.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
79 pl.UTF-8.mo \ |
1698 | 80 pt_BR.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
81 ru.cp1251.mo \ |
434 | 82 ru.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
83 sk.cp1250.mo \ |
434 | 84 sk.mo \ |
85 sv.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
86 uk.cp1251.mo \ |
434 | 87 uk.mo \ |
88 vi.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
89 zh_CN.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
90 zh_CN.cp936.mo \ |
434 | 91 zh_CN.UTF-8.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
92 zh_TW.mo \ |
434 | 93 zh_TW.UTF-8.mo \ |
7 | 94 |
95 PACKAGE = vim | |
96 | |
97 # Uncomment one of the lines below or modify it to put the path to your | |
98 # gettex binaries; I use the first | |
99 #GETTEXT_PATH = C:/gettext.win32/bin/ | |
100 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/ | |
101 #GETTEXT_PATH = C:/cygwin/bin/ | |
102 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
103 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
|
104 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
|
105 MSGMERGE = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)msgmerge |
7 | 106 |
107 MV = move | |
108 CP = copy | |
109 RM = del | |
110 MKD = mkdir | |
111 | |
112 .SUFFIXES: | |
113 .SUFFIXES: .po .mo .pot | |
114 .PHONY: first_time all install clean $(LANGUAGES) | |
115 | |
116 .po.mo: | |
117 $(MSGFMT) -o $@ $< | |
118 | |
119 all: $(MOFILES) | |
120 | |
121 first_time: | |
122 $(XGETTEXT) --default-domain=$(LANGUAGE) \ | |
123 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h) | |
124 | |
125 $(LANGUAGES): | |
126 $(XGETTEXT) --default-domain=$(PACKAGE) \ | |
127 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h) | |
128 $(MV) $(PACKAGE).po $(PACKAGE).pot | |
129 $(CP) $@.po $@.po.orig | |
130 $(MV) $@.po $@.po.old | |
131 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
132 $(RM) $@.po.old | |
133 | |
134 install: | |
135 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE) | |
136 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES | |
137 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo | |
138 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
139 install-all: all |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
140 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
|
141 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
|
142 FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
143 |
7 | 144 clean: |
145 $(RM) *.mo | |
146 $(RM) *.pot | |
147 | |
148 |