annotate runtime/spell/da/main.aap @ 482:6f8b578776ab v7.0131

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