annotate runtime/spell/af/main.aap @ 8601:46306a98407c v7.4.1590

commit https://github.com/vim/vim/commit/3f242a844e83a5a04943869f6e3bcbf8650dc465 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 18 19:39:25 2016 +0100 patch 7.4.1590 Problem: Warning for shadowed variable. (Christian Brabandt) Solution: Move the variable into a local block.
author Christian Brabandt <cb@256bit.org>
date Fri, 18 Mar 2016 19:45:04 +0100
parents 6f8b578776ab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
1 # Aap recipe for Afrikaans Vim spell files.
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 = af_ZA.aff af_ZA.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/af.latin1.spl $SPELLDIR/af.utf-8.spl ../README_af.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/af.latin1.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
15 :sys env LANG=af_ZA.ISO8859-1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/af af_ZA" -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/af.utf-8.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
19 :sys env LANG=af_ZA.UTF-8
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
20 $VIM -u NONE -e -c "mkspell! $SPELLDIR/af af_ZA" -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_af.txt : README_af_ZA.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
23 :copy $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 file from SourceForge. The archive at OpenOffice is broken!
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
27 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
28 FILE = http://surfnet.dl.sourceforge.net/sourceforge/translate/myspell-af_ZA-20040727.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
29
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
30 :attr {fetch = $FILE} af_ZA.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
31
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
32 # 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
33 # Only download the zip file if the targets don't exist.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
34 af_ZA.aff af_ZA.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
35 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
36 :fetch af_ZA.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
37 :sys $UNZIP af_ZA.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
38 :delete af_ZA.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
39 @if not os.path.exists('af_ZA.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
40 :copy af_ZA.aff af_ZA.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
41 @if not os.path.exists('af_ZA.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
42 :copy af_ZA.dic af_ZA.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
43 @if os.path.exists('af_ZA.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
44 :sys patch <af_ZA.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 af_ZA.orig.aff af_ZA.aff >af_ZA.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
53 :sys {force} diff -a -C 1 af_ZA.orig.dic af_ZA.dic >>af_ZA.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 af_ZA.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 ../af_ZA.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
67 :sys {force} diff ../af_ZA.orig.aff af_ZA.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 af_ZA.aff ../af_ZA.new.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
70 :sys {force} diff ../af_ZA.orig.dic af_ZA.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 af_ZA.dic ../af_ZA.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 af_ZA.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 :