comparison runtime/spell/yi/main.aap @ 482:6f8b578776ab v7.0131

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