annotate runtime/spell/yi/main.aap @ 7894:ef15b397fcc1

Added tag v7.4.1243 for changeset df2b8af14072797d157e2d072534c4b5249ef05e
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Feb 2016 19:45:05 +0100
parents 6f8b578776ab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
1 # Aap recipe for Yiddish Vim spell files.
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
2
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
6 @else:
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
7 :progsearch VIM vim
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
8
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
9 SPELLDIR = ..
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
10 FILES = yi.dic yi.aff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
11 WORDFILE = wordlist.utf8.txt
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
12 FILES_TR = yi_tr.dic yi_tr.aff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
13 WORDFILE_TR = wordlist.txt
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
14
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
15 all: $SPELLDIR/yi.utf-8.spl $SPELLDIR/yi-tr.utf-8.spl \
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
16 $SPELLDIR/yi.latin1.spl ../README_yi.txt
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
17
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
18 $SPELLDIR/yi.utf-8.spl : $FILES
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
19 :sys $VIM -u NONE -e -c "set enc=utf-8"
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 476
diff changeset
20 -c "mkspell! $SPELLDIR/yi yi" -c q
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
21
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
22 $SPELLDIR/yi-tr.utf-8.spl : $FILES_TR
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
23 :sys $VIM -u NONE -e -c "set enc=utf-8"
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
24 -c "mkspell! $SPELLDIR/yi-tr yi_tr" -c q
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
25
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
26 $SPELLDIR/yi.latin1.spl : $FILES_TR
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
27 :sys $VIM -u NONE -e -c "set enc=latin1"
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
28 -c "mkspell! $SPELLDIR/yi yi_tr" -c q
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
29
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
30 ../README_yi.txt : README.txt
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
31 :copy $source $target
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
32
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
33 #
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
34 # Fetch the word list when needed.
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
35 #
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
36 URLDIR = http://www.cs.uky.edu/~raphael/yiddish
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
37 :attr {fetch = $URLDIR/%file%} $WORDFILE $WORDFILE_TR
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
38
476
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
39 # We use the word list as a .dic file, so that we can use an affix file to
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
40 # define a few extra things.
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
41 $FILES: {buildcheck=}
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
42 :assertpkg patch
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
43 :fetch $WORDFILE
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
44 :copy $WORDFILE yi.dic
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
45 :touch {force} yi.aff
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
46 @if os.path.exists('yi.diff'):
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
47 :sys patch < yi.diff
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
48
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
49 $FILES_TR: {buildcheck=}
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
50 :assertpkg patch
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
51 :fetch $WORDFILE_TR
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
52 :copy $WORDFILE_TR yi_tr.dic
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
53 :touch {force} yi_tr.aff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
54 @if os.path.exists('yi_tr.diff'):
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
55 :sys patch < yi_tr.diff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
56
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
57 diff {virtual}:
476
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
58 :assertpkg diff
a6c13cc11da9 updated for version 7.0128
vimboss
parents: 474
diff changeset
59 # Using a context of two lines to work around a bug in FreeBSD patch.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
60 :sys {force} diff -a -C 2 $WORDFILE yi.dic > yi.diff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
61 :sys {force} diff -a -N -C 1 /dev/null yi.aff >> yi.diff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
62 :sys {force} diff -a -C 2 $WORDFILE_TR yi_tr.dic > yi_tr.diff
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
63 :sys {force} diff -a -N -C 1 /dev/null yi_tr.aff >> yi_tr.diff
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
64
a5fcf36ef512 updated for version 7.0127
vimboss
parents:
diff changeset
65 # vim: set sts=4 sw=4 :