1 # Aap recipe for Amharic Vim spell files.
3 # Use a freshly compiled Vim if it exists.
4 @if os.path.exists('../../../src/vim'):
10 FILES = am_ET.aff am_ET.dic
12 all: $SPELLDIR/am.utf-8.spl ../README_am.txt
14 $SPELLDIR/am.utf-8.spl : $FILES
15 :sys env LANG=am_ET.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/am am_ET" -c q
17 ../README_am.txt: README_am.txt
21 # Fetching the files from Hunspell.
23 HTTPDIR = http://hunspell.sourceforge.net
24 TARNAME = am-demo.tar.gz
25 :attr {fetch = $HTTPDIR/%file%} $TARNAME
27 # The files don't depend on the .zip file so that we can delete it.
28 # Only download the zip file if the targets don't exist.
29 # This is a bit tricky, since the file name includes the date.
30 am_ET.aff am_ET.dic: {buildcheck=}
33 :sys gzip -d -c $TARNAME | tar xf -
34 :move am/am.aff am_ET.aff
35 :move am/am.dic am_ET.dic
36 :move am/README README_am.txt
37 :delete {recursive} am
39 @if not os.path.exists('am_ET.orig.aff'):
40 :copy am_ET.aff am_ET.orig.aff
41 @if not os.path.exists('am_ET.orig.dic'):
42 :copy am_ET.dic am_ET.orig.dic
43 @if os.path.exists('am_ET.diff'):
44 :sys patch <am_ET.diff
47 # Generate diff files, so that others can get the OpenOffice files and apply
48 # the diffs to get the Vim versions.
52 :sys {force} diff -a -C 1 am_ET.orig.aff am_ET.aff >am_ET.diff
53 :sys {force} diff -a -C 1 am_ET.orig.dic am_ET.dic >>am_ET.diff
56 # Check for updated spell files. When there are changes the
57 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
60 :print Sorry, not implemented yet.
63 # vim: set sts=4 sw=4 :