annotate runtime/spell/de/main.aap @ 11003:bf484fd6443a

Added tag v8.0.0390 for changeset 35d4975a5bb588773c962fde166f6ff560d4bed4
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Mar 2017 12:30:04 +0100
parents ea3c3f13385c
children 7cfe57329284
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
7472c565592a updated for version 7.0117
vimboss
parents: 388
diff changeset
1 # Aap recipe for German Vim spell files.
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
2 #
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
3 # Since there is a big discussion about whether to use the old or the new
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
4 # spelling rules, both have been included.
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
5 # "de": all possible words allowed
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
6 # "de_de": old and new German spelling
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
7 # "de_19": old German spelling
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
8 # "de_20": new German spelling
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
9 # "de_AT": Austrian spelling
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
10 # "de_CH": Swiss spelling
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
11
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
12 # Use a freshly compiled Vim if it exists.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
13 @if os.path.exists('../../../src/vim'):
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
14 VIM = ../../../src/vim
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
15 @else:
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 448
diff changeset
16 :progsearch VIM vim
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
17
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
18 REGIONS = DE 19 20 AT CH
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
19 DE_REGIONS = de_$*REGIONS
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
20
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
21 SPELLDIR = ..
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
22 FILES = de_$*(REGIONS).aff de_$*(REGIONS).dic
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
23
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
24 ZIPFILE_DE = de_DE_comb.zip
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
25 ZIPFILE_19 = de_OLDSPELL.zip
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
26 ZIPFILE_20 = de_DE_neu.zip
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
27 ZIPFILE_AT = de_DE.zip
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
28 ZIPFILE_CH = de_CH.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
29 ZIPFILES = $ZIPFILE_DE $ZIPFILE_19 $ZIPFILE_20 $ZIPFILE_AT $ZIPFILE_CH
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
30
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
31 READMES = README_de_$*(REGIONS).txt
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
32
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
33 all: $SPELLDIR/de.latin1.spl $SPELLDIR/de.utf-8.spl ../README_de.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
34
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
35 $SPELLDIR/de.latin1.spl : $FILES
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 2152
diff changeset
36 :sys env LANG=de_DE.ISO-8859-1
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
37 $VIM -u NONE -e -c "mkspell! $SPELLDIR/de $DE_REGIONS" -c q
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
38
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
39 $SPELLDIR/de.utf-8.spl : $FILES
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
40 :sys env LANG=de_DE.UTF-8
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
41 $VIM -u NONE -e -c "mkspell! $SPELLDIR/de $DE_REGIONS" -c q
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
42
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
43 ../README_de.txt: $READMES
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
44 :print de_DE (combined) >! $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
45 :cat README_de_DE.txt >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
46 :print =================================================== >>$target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
47 :print de_19 (old) >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
48 :cat README_de_19.txt >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
49 :print =================================================== >>$target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
50 :print de_20 (new) >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
51 :cat README_de_20.txt >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
52 :print =================================================== >>$target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
53 :print de_AT (Austria) >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
54 :cat README_de_AT.txt >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
55 :print =================================================== >>$target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
56 :print de_CH (Swiss) >> $target
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
57 :cat README_de_CH.txt >> $target
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
58
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
59 #
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
60 # Fetching the files from the OpenOffice.org site.
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
61 # The OLDSPELL file comes from elsewhere
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
62 #
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
63 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
64 DEDIR = http://www.j3e.de/myspell
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
65 :attr {fetch = $OODIR/%file%} $ZIPFILES
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
66 :attr {fetch = $DEDIR/%file%} $ZIPFILE_19
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
67
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
68 # The files don't depend on the .zip file so that we can delete it.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
69 # Only download the zip file if the targets don't exist.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
70 de_DE.aff de_DE.dic: {buildcheck=}
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
71 :assertpkg unzip patch
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
72 :fetch $ZIPFILE_DE
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
73 :sys $UNZIP $ZIPFILE_DE
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
74 :delete $ZIPFILE_DE
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
75 :move de_DE_comb.aff de_DE.aff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
76 :move de_DE_comb.dic de_DE.dic
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
77 :move README_de_DE_comb.txt README_de_DE.txt
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
78 @if not os.path.exists('de_DE.orig.aff'):
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
79 :copy de_DE.aff de_DE.orig.aff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
80 @if not os.path.exists('de_DE.orig.dic'):
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
81 :copy de_DE.dic de_DE.orig.dic
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 448
diff changeset
82 @if os.path.exists('de_DE.diff'):
c4d200412ae9 updated for version 7.0121
vimboss
parents: 448
diff changeset
83 :sys patch <de_DE.diff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
84
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
85 de_19.aff de_19.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
86 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
87 :fetch $ZIPFILE_19
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
88 :sys $UNZIP $ZIPFILE_19
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
89 :delete $ZIPFILE_19
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
90 :move de_OLDSPELL.aff de_19.aff
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
91 :move de_OLDSPELL.dic de_19.dic
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
92 # there is no README file
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
93 :print There is no README file for the old spelling >!README_de_19.txt
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
94 @if not os.path.exists('de_19.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
95 :copy de_19.aff de_19.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
96 @if not os.path.exists('de_19.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
97 :copy de_19.dic de_19.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
98 @if os.path.exists('de_19.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
99 :sys patch <de_19.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
100
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
101 de_20.aff de_20.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
102 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
103 :fetch $ZIPFILE_20
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
104 :sys $UNZIP $ZIPFILE_20
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
105 :delete $ZIPFILE_20
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
106 :move de_DE_neu.aff de_20.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
107 :move de_DE_neu.dic de_20.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
108 :move README_de_DE_neu.txt README_de_20.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
109 @if not os.path.exists('de_20.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
110 :copy de_20.aff de_20.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
111 @if not os.path.exists('de_20.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
112 :copy de_20.dic de_20.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
113 @if os.path.exists('de_20.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
114 :sys patch <de_20.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
115
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
116 # The de_AT.dic is included in de_DE.zip. We rename the files and concatenate
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
117 # them. Complication is that de_AT.dic is missing a newline at the end.
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
118 # And the de_DE.dic file is used for something else.
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
119 de_AT.aff de_AT.dic: {buildcheck=}
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
120 :assertpkg unzip patch
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
121
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
122 # Move de_DE files out of the way.
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
123 @if os.path.exists('de_DE.aff'):
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
124 :move de_DE.aff de_DE.temp.aff
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
125 @if os.path.exists('de_DE.dic'):
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
126 :move de_DE.dic de_DE.temp.dic
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
127 @if os.path.exists('README_de_DE.txt'):
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
128 :move README_de_DE.txt README_de_DE.temp.txt
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
129
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
130 :fetch $ZIPFILE_AT
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
131 :sys $UNZIP $ZIPFILE_AT
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
132 :delete $ZIPFILE_AT
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
133
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
134 :print >>de_AT.dic
565
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
135 # delete the first line, the word count
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 565
diff changeset
136 :sys $VIM -u NONE de_DE.dic -e -c 1delete -c wq
499
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
137 :cat de_DE.dic >>de_AT.dic
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
138 :delete de_DE.dic
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
139 :move de_DE.aff de_AT.aff
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
140 :move README_de_DE.txt README_de_AT.txt
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
141
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
142 @if os.path.exists('de_DE.temp.aff'):
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
143 :move de_DE.temp.aff de_DE.aff
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
144 @if os.path.exists('de_DE.temp.dic'):
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
145 :move de_DE.temp.dic de_DE.dic
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
146 @if os.path.exists('README_de_DE.temp.txt'):
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
147 :move README_de_DE.temp.txt README_de_DE.txt
08012a1ff8d4 updated for version 7.0137
vimboss
parents: 482
diff changeset
148
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
149 @if not os.path.exists('de_AT.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
150 :copy de_AT.aff de_AT.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
151 @if not os.path.exists('de_AT.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
152 :copy de_AT.dic de_AT.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
153 @if os.path.exists('de_AT.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
154 :sys patch <de_AT.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
155
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
156 de_CH.aff de_CH.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
157 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
158 :fetch $ZIPFILE_CH
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
159 :sys $UNZIP $ZIPFILE_CH
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
160 :delete $ZIPFILE_CH
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
161 @if not os.path.exists('de_CH.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
162 :copy de_CH.aff de_CH.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
163 @if not os.path.exists('de_CH.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
164 :copy de_CH.dic de_CH.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
165 @if os.path.exists('de_CH.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
166 :sys patch <de_CH.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
167
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
168
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
169 # Generate diff files, so that others can get the OpenOffice files and apply
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
170 # the diffs to get the Vim versions.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
171 diff:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
172 :assertpkg diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
173 :sys {force} diff -a -C 1 de_DE.orig.aff de_DE.aff >de_DE.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
174 :sys {force} diff -a -C 1 de_DE.orig.dic de_DE.dic >>de_DE.diff
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
175 :sys {force} diff -a -C 1 de_19.orig.aff de_19.aff >de_19.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
176 :sys {force} diff -a -C 1 de_19.orig.dic de_19.dic >>de_19.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
177 :sys {force} diff -a -C 1 de_20.orig.aff de_20.aff >de_20.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
178 :sys {force} diff -a -C 1 de_20.orig.dic de_20.dic >>de_20.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
179 :sys {force} diff -a -C 1 de_AT.orig.aff de_AT.aff >de_AT.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
180 :sys {force} diff -a -C 1 de_AT.orig.dic de_AT.dic >>de_AT.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
181 :sys {force} diff -a -C 1 de_CH.orig.aff de_CH.aff >de_CH.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
182 :sys {force} diff -a -C 1 de_CH.orig.dic de_CH.dic >>de_CH.diff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
183
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
184
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
185 # Check for updated OpenOffice spell files. When there are changes the
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
186 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
187
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
188 check:
565
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
189 :assertpkg unzip patch
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
190 :fetch $ZIPFILES
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
191 :mkdir tmp
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
192 :cd tmp
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
193 @try:
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
194 # Do the _AT one first, it overwrites the _DE files.
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
195 :sys $UNZIP ../$ZIPFILE_AT
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
196 :print >>de_AT.dic
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
197 # delete the first line, the word count
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 565
diff changeset
198 :sys ../$VIM -u NONE de_DE.dic -e -c 1delete -c wq
565
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
199 :cat de_DE.dic >>de_AT.dic
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
200 :delete de_DE.dic
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
201 :move de_DE.aff de_AT.aff
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
202 :move README_de_DE.txt README_de_AT.txt
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
203
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
204 :sys $UNZIP ../$ZIPFILE_DE
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
205 :move de_DE_comb.aff de_DE.aff
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
206 :move de_DE_comb.dic de_DE.dic
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
207 :move README_de_DE_comb.txt README_de_DE.txt
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
208
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
209 :sys $UNZIP ../$ZIPFILE_19
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
210 :move de_OLDSPELL.aff de_19.aff
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
211 :move de_OLDSPELL.dic de_19.dic
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
212 # there is no README file
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
213 :print There is no README file for the old spelling >!README_de_19.txt
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
214 :sys $UNZIP ../$ZIPFILE_20
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
215 :move de_DE_neu.aff de_20.aff
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
216 :move de_DE_neu.dic de_20.dic
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
217 :move README_de_DE_neu.txt README_de_20.txt
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
218
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
219 :sys $UNZIP ../$ZIPFILE_CH
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
220
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
221 @import stat
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
222 @for nm in ['de_DE', 'de_19', 'de_20', 'de_AT', 'de_CH']:
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
223 @for ext in ['aff', 'dic']:
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
224 :sys {force} diff ../$(nm).orig.$ext $(nm).$ext >d
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
225 @if os.stat('d')[stat.ST_SIZE] > 0:
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
226 :copy $(nm).$ext ../$(nm).new.$ext
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
227 :sys {force} diff ../README_$(nm).txt README_$(nm).txt >d
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
228 @if os.stat('d')[stat.ST_SIZE] > 0:
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
229 :copy README_$(nm).txt ../README_$(nm).new.txt
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
230 @finally:
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
231 :cd ..
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
232 :delete {r}{f}{q} tmp
010397e1770e updated for version 7.0160
vimboss
parents: 499
diff changeset
233 :delete $ZIPFILES
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
234
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
235
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
236 # vim: set sts=4 sw=4 :