annotate runtime/spell/gl/main.aap @ 19732:e292acf16e26 v8.2.0422

patch 8.2.0422: crash when passing popup window to win_splitmove() Commit: https://github.com/vim/vim/commit/0f1563ffee4397f5b379517c41b7c9a977fd2e22 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 20 21:15:51 2020 +0100 patch 8.2.0422: crash when passing popup window to win_splitmove() Problem: Crash when passing popup window to win_splitmove(). (john Devin) Solution: Disallow moving a popup window. (closes https://github.com/vim/vim/issues/5816)
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Mar 2020 21:30:03 +0100
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 Galician (Spain) 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 = gl_ES.aff gl_ES.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/gl.latin1.spl $SPELLDIR/gl.utf-8.spl ../README_gl.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
13
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
14 $SPELLDIR/gl.latin1.spl : $FILES
615
7fe13e0f5dce updated for version 7.0175
vimboss
parents: 482
diff changeset
15 :sys env LANG=es_ES.ISO8859-1
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/gl gl_ES" -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/gl.utf-8.spl : $FILES
615
7fe13e0f5dce updated for version 7.0175
vimboss
parents: 482
diff changeset
19 :sys env LANG=es_ES.UTF-8
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
20 $VIM -u NONE -e -c "mkspell! $SPELLDIR/gl gl_ES" -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_gl.txt : README_gl_ES.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%} gl_ES.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 gl_ES.aff gl_ES.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 gl_ES.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
36 :sys $UNZIP gl_ES.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
37 :delete gl_ES.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
38 @if not os.path.exists('gl_ES.orig.aff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
39 :copy gl_ES.aff gl_ES.orig.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
40 @if not os.path.exists('gl_ES.orig.dic'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
41 :copy gl_ES.dic gl_ES.orig.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
42 @if os.path.exists('gl_ES.diff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
43 :sys patch <gl_ES.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 gl_ES.orig.aff gl_ES.aff >gl_ES.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
52 :sys {force} diff -a -C 1 gl_ES.orig.dic gl_ES.dic >>gl_ES.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 gl_ES.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 ../gl_ES.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
66 :sys {force} diff ../gl_ES.orig.aff gl_ES.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 gl_ES.aff ../gl_ES.new.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
69 :sys {force} diff ../gl_ES.orig.dic gl_ES.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 gl_ES.dic ../gl_ES.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 gl_ES.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 :