annotate runtime/spell/ru/main.aap @ 20710:24fa685e72e9

Added tag v8.2.0908 for changeset a2262c80a4e01dd4e4e5696fe8b3d7ca5c25a8d0
author Bram Moolenaar <Bram@vim.org>
date Fri, 05 Jun 2020 21:15:04 +0200
parents 35cde31bdcbd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
500
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
1 # Aap recipe for Russian Vim spell files.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
2
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
6 @else:
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
7 :progsearch VIM vim
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
8
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 500
diff changeset
9 REGIONS = RU YO
500
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
10 SPELLDIR = ..
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
11 FILES = ru_$*(REGIONS).aff ru_$*(REGIONS).dic
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
12
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
13 all: $SPELLDIR/ru.koi8-r.spl $SPELLDIR/ru.utf-8.spl \
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
14 $SPELLDIR/ru.cp1251.spl ../README_ru.txt
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
15
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
16 $SPELLDIR/ru.koi8-r.spl : $FILES
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 500
diff changeset
17 :sys env LANG=ru_RU.KOI8-R $VIM -u NONE -e -c "mkspell! $SPELLDIR/ru ru_RU ru_YO" -c q
500
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
18
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
19 $SPELLDIR/ru.utf-8.spl : $FILES
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 500
diff changeset
20 :sys env LANG=ru_RU.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ru ru_RU ru_YO" -c q
500
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
21
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
22 $SPELLDIR/ru.cp1251.spl : $FILES
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 500
diff changeset
23 :sys env LANG=ru_RU.CP1251 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ru ru_RU ru_YO" -c q
500
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
24
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
25 ../README_ru.txt: README_ru_$*(REGIONS).txt
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
26 :print ru_RU >! $target
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
27 :cat README_ru_RU.txt >> $target
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
28 :print =================================================== >>$target
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
29 :print ru_YO >> $target
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
30 :cat README_ru_YO.txt >> $target
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
31
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
32 #
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
33 # Fetching the files from OpenOffice.org.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
34 #
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
35 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 500
diff changeset
36 :attr {fetch = $OODIR/%file%} ru_RU.zip ru_RU_yo.zip
500
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
37
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
38 # The files don't depend on the .zip file so that we can delete it.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
39 # Only download the zip file if the targets don't exist.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
40 # This is a bit tricky, since the file name includes the date.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
41 ru_RU.aff ru_RU.dic: {buildcheck=}
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
42 :assertpkg unzip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
43 :fetch ru_RU.zip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
44 :sys unzip ru_RU.zip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
45 :delete ru_RU.zip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
46 @if not os.path.exists('ru_RU.orig.aff'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
47 :copy ru_RU.aff ru_RU.orig.aff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
48 @if not os.path.exists('ru_RU.orig.dic'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
49 :copy ru_RU.dic ru_RU.orig.dic
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
50 @if os.path.exists('ru_RU.diff'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
51 :sys patch <ru_RU.diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
52
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
53 ru_YO.aff ru_YO.dic: {buildcheck=}
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
54 :assertpkg unzip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
55 :fetch ru_RU_yo.zip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
56 :sys unzip ru_RU_yo.zip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
57 :delete ru_RU_yo.zip
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
58 :move ru_RU_yo.aff ru_YO.aff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
59 :move ru_RU_yo.dic ru_YO.dic
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
60 :move README_ru_RU_yo.txt README_ru_YO.txt
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
61 @if not os.path.exists('ru_YO.orig.aff'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
62 :copy ru_YO.aff ru_YO.orig.aff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
63 @if not os.path.exists('ru_YO.orig.dic'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
64 :copy ru_YO.dic ru_YO.orig.dic
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
65 @if os.path.exists('ru_YO.diff'):
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
66 :sys patch <ru_YO.diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
67
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
68
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
69 # Generate diff files, so that others can get the OpenOffice files and apply
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
70 # the diffs to get the Vim versions.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
71
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
72 diff:
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
73 :assertpkg diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
74 :sys {force} diff -a -C 1 ru_RU.orig.aff ru_RU.aff >ru_RU.diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
75 :sys {force} diff -a -C 1 ru_RU.orig.dic ru_RU.dic >>ru_RU.diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
76 :sys {force} diff -a -C 1 ru_YO.orig.aff ru_YO.aff >ru_YO.diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
77 :sys {force} diff -a -C 1 ru_YO.orig.dic ru_YO.dic >>ru_YO.diff
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
78
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
79
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
80 # Check for updated spell files. When there are changes the
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
81 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
82
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
83 check:
4772a5e3f9fa updated for version 7.0138
vimboss
parents:
diff changeset
84 :print Doesn't work yet.