annotate runtime/spell/he/main.aap @ 388:f92bb1845823 v7.0101

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