annotate runtime/spell/it/main.aap @ 2953:9f71f5a526af v7.3.249

updated for version 7.3.249 Problem: Wrong indenting for array initializer. Solution: Detect '}' in a better way. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Fri, 15 Jul 2011 14:12:30 +0200
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 Italian Vim spell files.
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
2
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
6 @else:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
7 :progsearch VIM vim
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
8
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
9 SPELLDIR = ..
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
10 FILES = it_IT.aff it_IT.dic
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
11
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
12 all: $SPELLDIR/it.latin1.spl $SPELLDIR/it.utf-8.spl ../README_it.txt
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
13
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
14 $SPELLDIR/it.latin1.spl : $FILES
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
15 :sys env LANG=it_IT.ISO8859-1
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/it it_IT" -c q
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
17
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
18 $SPELLDIR/it.utf-8.spl : $FILES
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
19 :sys env LANG=it_IT.UTF-8
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
20 $VIM -u NONE -e -c "mkspell! $SPELLDIR/it it_IT" -c q
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
21
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents: 482
diff changeset
22 ../README_it.txt : README_it_IT.txt README.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents: 482
diff changeset
23 :cat $source >! $target
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
24
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
25 #
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
26 # Fetching the files from OpenOffice.org.
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
27 #
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
28 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
29 :attr {fetch = $OODIR/%file%} it_IT.zip
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
30
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
31 # The files don't depend on the .zip file so that we can delete it.
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
32 # Only download the zip file if the targets don't exist.
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
33 it_IT.aff it_IT.dic: {buildcheck=}
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
34 :assertpkg unzip patch
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
35 :fetch it_IT.zip
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
36 :sys $UNZIP it_IT.zip
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
37 :delete it_IT.zip
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents: 482
diff changeset
38 :delete GPL.txt history.txt license.txt notes.txt statistiche.sxc thanks.txt
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
39 @if not os.path.exists('it_IT.orig.aff'):
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
40 :copy it_IT.aff it_IT.orig.aff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
41 @if not os.path.exists('it_IT.orig.dic'):
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
42 :copy it_IT.dic it_IT.orig.dic
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
43 @if os.path.exists('it_IT.diff'):
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
44 :sys patch <it_IT.diff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
45
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
46
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
47 # Generate diff files, so that others can get the OpenOffice files and apply
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
48 # the diffs to get the Vim versions.
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
49
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
50 diff:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
51 :assertpkg diff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
52 :sys {force} diff -a -C 1 it_IT.orig.aff it_IT.aff >it_IT.diff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
53 :sys {force} diff -a -C 1 it_IT.orig.dic it_IT.dic >>it_IT.diff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
54
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
55
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
56 # Check for updated OpenOffice spell files. When there are changes the
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
57 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
58
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
59 check:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
60 :assertpkg unzip diff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
61 :fetch it_IT.zip
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
62 :mkdir tmp
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
63 :cd tmp
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
64 @try:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
65 @import stat
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
66 :sys $UNZIP ../it_IT.zip
456
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
67 :sys {force} diff ../it_IT.orig.aff it_IT.aff >d
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
68 @if os.stat('d')[stat.ST_SIZE] > 0:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
69 :copy it_IT.aff ../it_IT.new.aff
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
70 :sys {force} diff ../it_IT.orig.dic it_IT.dic >d
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
71 @if os.stat('d')[stat.ST_SIZE] > 0:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
72 :copy it_IT.dic ../it_IT.new.dic
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
73 @finally:
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
74 :cd ..
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
75 :delete {r}{f}{q} tmp
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
76 :delete it_IT.zip
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
77
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
78
c4d200412ae9 updated for version 7.0121
vimboss
parents:
diff changeset
79 # vim: set sts=4 sw=4 :