annotate runtime/spell/gd/main.aap @ 13204:a8a154cafc60 v8.0.1476

patch 8.0.1476: screen isn't always updated right away commit https://github.com/vim/vim/commit/acda04f5c641330cd589ca52eb61d1ab0d62385f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 8 09:57:28 2018 +0100 patch 8.0.1476: screen isn't always updated right away Problem: Screen isn't always updated right away. Solution: Adjust #ifdef: Call out_flush() when not running the GUI.
author Christian Brabandt <cb@256bit.org>
date Thu, 08 Feb 2018 10:00:06 +0100
parents ea3c3f13385c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
1 # Aap recipe for Scottish Gaelic Vim spell files.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
2
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
6 @else:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
7 :progsearch VIM vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
8
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
9 SPELLDIR = ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
10 FILES = gd_GB.aff gd_GB.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
11
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
12 all: $SPELLDIR/gd.latin1.spl $SPELLDIR/gd.utf-8.spl ../README_gd.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
13
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
14 $SPELLDIR/gd.latin1.spl : $FILES
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 615
diff changeset
15 :sys env LANG=gd_GB.ISO8859-15
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/gd gd_GB" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
17
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
18 $SPELLDIR/gd.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/gd gd_GB" -c q
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
20
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
21 ../README_gd.txt : README_gd_GB.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
22 :copy $source $target
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
23
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
24 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
25 # Fetching the files from OpenOffice.org.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
26 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
27 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
28 :attr {fetch = $OODIR/%file%} gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
29
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
30 # The files don't depend on the .zip file so that we can delete it.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
31 # Only download the zip file if the targets don't exist.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
32 gd_GB.aff gd_GB.dic: {buildcheck=}
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
33 :assertpkg unzip patch
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
34 :fetch gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
35 :sys $UNZIP gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
36 :delete gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
37 @if not os.path.exists('gd_GB.orig.aff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
38 :copy gd_GB.aff gd_GB.orig.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
39 @if not os.path.exists('gd_GB.orig.dic'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
40 :copy gd_GB.dic gd_GB.orig.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
41 @if os.path.exists('gd_GB.diff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
42 :sys patch <gd_GB.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
43
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
44
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
45 # Generate diff files, so that others can get the OpenOffice files and apply
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
46 # the diffs to get the Vim versions.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
47
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
48 diff:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
49 :assertpkg diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
50 :sys {force} diff -a -C 1 gd_GB.orig.aff gd_GB.aff >gd_GB.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
51 :sys {force} diff -a -C 1 gd_GB.orig.dic gd_GB.dic >>gd_GB.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
52
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
53
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
54 # Check for updated OpenOffice spell files. When there are changes the
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
55 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
56
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
57 check:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
58 :assertpkg unzip diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
59 :fetch gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
60 :mkdir tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
61 :cd tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
62 @try:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
63 @import stat
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
64 :sys $UNZIP ../gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
65 :sys {force} diff ../gd_GB.orig.aff gd_GB.aff >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
66 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
67 :copy gd_GB.aff ../gd_GB.new.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
68 :sys {force} diff ../gd_GB.orig.dic gd_GB.dic >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
69 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
70 :copy gd_GB.dic ../gd_GB.new.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
71 @finally:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
72 :cd ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
73 :delete {r}{f}{q} tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
74 :delete gd_GB.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
75
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
76
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
77 # vim: set sts=4 sw=4 :