blob: e8ba35c30ad19d7589e91c65982e619f93bf0847 [file] [log] [blame]
Bram Moolenaare52325c2005-08-22 22:54:29 +00001# Aap recipe for Amharic Vim spell files.
2
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
8
9SPELLDIR = ..
10FILES = am_ET.aff am_ET.dic
11
12all: $SPELLDIR/am.utf-8.spl ../README_am.txt
13
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
16
17../README_am.txt: README_am.txt
18 :copy $source $target
19
20#
21# Fetching the files from Hunspell.
22#
23HTTPDIR = http://hunspell.sourceforge.net
24TARNAME = am-demo.tar.gz
25:attr {fetch = $HTTPDIR/%file%} $TARNAME
26
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.
30am_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
45
46
47# Generate diff files, so that others can get the OpenOffice files and apply
48# the diffs to get the Vim versions.
49
50diff:
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
54
55
56# Check for updated spell files. When there are changes the
57# ".new.aff" and ".new.dic" files are left behind for manual inspection.
58
59check:
60 :print Sorry, not implemented yet.
61
62
63# vim: set sts=4 sw=4 :