0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/spell/yi/main.aap

66 lines
1.9 KiB
Plaintext
Raw Normal View History

2005-08-16 23:01:50 +00:00
# Aap recipe for Yiddish Vim spell files.
2005-08-10 21:07:57 +00:00
# Use a freshly compiled Vim if it exists.
@if os.path.exists('../../../src/vim'):
VIM = ../../../src/vim
@else:
:progsearch VIM vim
2005-08-16 23:01:50 +00:00
SPELLDIR = ..
FILES = yi.dic yi.aff
WORDFILE = wordlist.utf8.txt
FILES_TR = yi_tr.dic yi_tr.aff
WORDFILE_TR = wordlist.txt
2005-08-10 21:07:57 +00:00
2005-08-16 23:01:50 +00:00
all: $SPELLDIR/yi.utf-8.spl $SPELLDIR/yi-tr.utf-8.spl \
$SPELLDIR/yi.latin1.spl ../README_yi.txt
2005-08-10 21:07:57 +00:00
2005-08-16 23:01:50 +00:00
$SPELLDIR/yi.utf-8.spl : $FILES
2005-08-10 21:07:57 +00:00
:sys $VIM -u NONE -e -c "set enc=utf-8"
2005-08-15 21:41:48 +00:00
-c "mkspell! $SPELLDIR/yi yi" -c q
2005-08-10 21:07:57 +00:00
2005-08-16 23:01:50 +00:00
$SPELLDIR/yi-tr.utf-8.spl : $FILES_TR
:sys $VIM -u NONE -e -c "set enc=utf-8"
-c "mkspell! $SPELLDIR/yi-tr yi_tr" -c q
$SPELLDIR/yi.latin1.spl : $FILES_TR
:sys $VIM -u NONE -e -c "set enc=latin1"
-c "mkspell! $SPELLDIR/yi yi_tr" -c q
2005-08-10 21:07:57 +00:00
../README_yi.txt : README.txt
:copy $source $target
#
# Fetch the word list when needed.
#
URLDIR = http://www.cs.uky.edu/~raphael/yiddish
2005-08-16 23:01:50 +00:00
:attr {fetch = $URLDIR/%file%} $WORDFILE $WORDFILE_TR
2005-08-11 20:00:37 +00:00
# We use the word list as a .dic file, so that we can use an affix file to
# define a few extra things.
$FILES: {buildcheck=}
:assertpkg patch
:fetch $WORDFILE
:copy $WORDFILE yi.dic
:touch {force} yi.aff
@if os.path.exists('yi.diff'):
:sys patch < yi.diff
2005-08-10 21:07:57 +00:00
2005-08-16 23:01:50 +00:00
$FILES_TR: {buildcheck=}
:assertpkg patch
:fetch $WORDFILE_TR
:copy $WORDFILE_TR yi_tr.dic
:touch {force} yi_tr.aff
@if os.path.exists('yi_tr.diff'):
:sys patch < yi_tr.diff
diff {virtual}:
2005-08-11 20:00:37 +00:00
:assertpkg diff
# Using a context of two lines to work around a bug in FreeBSD patch.
2005-08-16 23:01:50 +00:00
:sys {force} diff -a -C 2 $WORDFILE yi.dic > yi.diff
:sys {force} diff -a -N -C 1 /dev/null yi.aff >> yi.diff
:sys {force} diff -a -C 2 $WORDFILE_TR yi_tr.dic > yi_tr.diff
:sys {force} diff -a -N -C 1 /dev/null yi_tr.aff >> yi_tr.diff
2005-08-10 21:07:57 +00:00
# vim: set sts=4 sw=4 :