annotate runtime/spell/el/main.aap @ 8829:a2c27f6aaf3a v7.4.1702

commit https://github.com/vim/vim/commit/4afc7c5d4a73340831077a02bfe1f74935e7f4a1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 3 14:56:52 2016 +0200 patch 7.4.1702 Problem: Using freed memory when parsing 'printoptions' fails. Solution: Save the old options and restore them in case of an error. (Dominique)
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Apr 2016 15:00:06 +0200
parents 6f8b578776ab
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 Greek 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 = el_GR.aff el_GR.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/el.iso-8859-7.spl $SPELLDIR/el.utf-8.spl ../README_el.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
13
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
14 $SPELLDIR/el.iso-8859-7.spl : $FILES
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
15 :sys env LANG=el_GR.ISO8859-7
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/el el_GR" -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/el.utf-8.spl : $FILES
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
19 :sys env LANG=el_GR.UTF-8
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
20 $VIM -u NONE -e -c "mkspell! $SPELLDIR/el el_GR" -c q
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
21
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
22 ../README_el.txt : README_el_GR.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
23 :copy $source $target
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
24
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
25 #
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
26 # Fetching the files from OpenOffice.org.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
27 #
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
28 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
29 :attr {fetch = $OODIR/%file%} el_GR.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
30
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
31 # 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
32 # Only download the zip file if the targets don't exist.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
33 el_GR.aff el_GR.dic: {buildcheck=}
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
34 :assertpkg unzip patch
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
35 :fetch el_GR.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
36 :sys $UNZIP el_GR.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
37 :delete el_GR.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
38 @if not os.path.exists('el_GR.orig.aff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
39 :copy el_GR.aff el_GR.orig.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
40 @if not os.path.exists('el_GR.orig.dic'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
41 :copy el_GR.dic el_GR.orig.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
42 @if os.path.exists('el_GR.diff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
43 :sys patch <el_GR.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 el_GR.orig.aff el_GR.aff >el_GR.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
52 :sys {force} diff -a -C 1 el_GR.orig.dic el_GR.dic >>el_GR.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 el_GR.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 ../el_GR.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
66 :sys {force} diff ../el_GR.orig.aff el_GR.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 el_GR.aff ../el_GR.new.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
69 :sys {force} diff ../el_GR.orig.dic el_GR.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 el_GR.dic ../el_GR.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 el_GR.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 :