annotate runtime/spell/da/main.aap @ 1121:e63691e7c504

updated for version 7.1a
author vimboss
date Sat, 05 May 2007 17:54:07 +0000
parents 52e76e2b5b65
children
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
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 502
diff changeset
38 :delete COPYING Makefile da_DK.excluded
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
39 @if not os.path.exists('da_DK.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
40 :copy da_DK.aff da_DK.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
41 @if not os.path.exists('da_DK.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
42 :copy da_DK.dic da_DK.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
43 @if os.path.exists('da_DK.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
44 :sys patch <da_DK.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
45
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
46
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
47 # Generate diff files, so that others can get the OpenOffice files and apply
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
48 # the diffs to get the Vim versions.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
49
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
50 diff:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
51 :assertpkg diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
52 :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
53 :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
54
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
55
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
56 # Check for updated OpenOffice spell files. When there are changes the
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
57 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
58
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
59 check:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
60 :assertpkg unzip diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
61 :fetch da_DK.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
62 :mkdir tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
63 :cd tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
64 @try:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
65 @import stat
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
66 :sys $UNZIP ../da_DK.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
67 :sys {force} diff ../da_DK.orig.aff da_DK.aff >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
68 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
69 :copy da_DK.aff ../da_DK.new.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
70 :sys {force} diff ../da_DK.orig.dic da_DK.dic >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
71 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
72 :copy da_DK.dic ../da_DK.new.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
73 @finally:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
74 :cd ..
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
75 :delete {r}{f}{q} tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
76 :delete da_DK.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
77
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
78
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
79 # vim: set sts=4 sw=4 :