annotate runtime/spell/fo/main.aap @ 5074:1cacf785299e v7.3.1280

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