vim72-20100325-kaoriya-w64j.zip
[MacVim/KaoriYa.git] / runtime / spell / am / main.aap
blobe8ba35c30ad19d7589e91c65982e619f93bf0847
1 # Aap recipe for Amharic Vim spell files.
3 # Use a freshly compiled Vim if it exists.
4 @if os.path.exists('../../../src/vim'):
5     VIM = ../../../src/vim
6 @else:
7     :progsearch VIM vim
9 SPELLDIR = ..
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
18         :copy $source $target
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=}
31         :assertpkg tar gzip
32         :fetch $TARNAME
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
38         :delete $TARNAME
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.
50 diff:
51         :assertpkg diff
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.
59 check:
60         :print Sorry, not implemented yet.
63 # vim: set sts=4 sw=4 :