annotate runtime/spell/mi/main.aap @ 1248:1ad8894bbc07

updated for version 7.1
author vimboss
date Sat, 12 May 2007 13:47:10 +0000
parents fd1b3406fd1c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
1 # Aap recipe for Maori Vim spell files.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
2
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
6 @else:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
7 :progsearch VIM vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
8
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
9 SPELLDIR = ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
10 FILES = mi_NZ.aff mi_NZ.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
11
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 502
diff changeset
12 all: $SPELLDIR/mi.iso-8859-4.spl $SPELLDIR/mi.utf-8.spl ../README_mi.txt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
13
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 502
diff changeset
14 $SPELLDIR/mi.iso-8859-4.spl : $FILES
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
15 :sys $VIM -u NONE -e -c "set enc=iso-8859-4"
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
16 -c "mkspell! $SPELLDIR/mi mi_NZ" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
17
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
18 $SPELLDIR/mi.utf-8.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
19 :sys $VIM -u NONE -e -c "set enc=utf-8"
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
20 -c "mkspell! $SPELLDIR/mi mi_NZ" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
21
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
22 ../README_mi.txt : README_mi_NZ.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
23 :copy $source $target
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
24
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
25 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
26 # Fetching the files from OpenOffice.org.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
27 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
28 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
29 :attr {fetch = $OODIR/%file%} mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
30
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
31 # The files don't depend on the .zip file so that we can delete it.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
32 # Only download the zip file if the targets don't exist.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
33 mi_NZ.aff mi_NZ.dic: {buildcheck=}
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
34 :assertpkg unzip patch
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
35 :fetch mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
36 :sys $UNZIP mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
37 :delete mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
38 # Fix missing end of line.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
39 :print >>mi_NZ.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
40 @if not os.path.exists('mi_NZ.orig.aff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
41 :copy mi_NZ.aff mi_NZ.orig.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
42 @if not os.path.exists('mi_NZ.orig.dic'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
43 :copy mi_NZ.dic mi_NZ.orig.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
44 @if os.path.exists('mi_NZ.diff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
45 :sys patch <mi_NZ.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
46
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
47
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
48 # Generate diff files, so that others can get the OpenOffice files and apply
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
49 # the diffs to get the Vim versions.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
50
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
51 diff:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
52 :assertpkg diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
53 :sys {force} diff -a -C 1 mi_NZ.orig.aff mi_NZ.aff >mi_NZ.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
54 :sys {force} diff -a -C 1 mi_NZ.orig.dic mi_NZ.dic >>mi_NZ.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
55
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
56
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
57 # Check for updated OpenOffice spell files. When there are changes the
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
58 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
59
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
60 check:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
61 :assertpkg unzip diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
62 :fetch mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
63 :mkdir tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
64 :cd tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
65 @try:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
66 @import stat
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
67 :sys $UNZIP ../mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
68 :sys {force} diff ../mi_NZ.orig.aff mi_NZ.aff >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
69 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
70 :copy mi_NZ.aff ../mi_NZ.new.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
71 :sys {force} diff ../mi_NZ.orig.dic mi_NZ.dic >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
72 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
73 :copy mi_NZ.dic ../mi_NZ.new.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
74 @finally:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
75 :cd ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
76 :delete {r}{f}{q} tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
77 :delete mi_NZ.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
78
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
79
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
80 # vim: set sts=4 sw=4 :