annotate runtime/spell/la/main.aap @ 13946:c2312fc9fbfe v8.0.1843

patch 8.0.1843: entry for 'wrap' in options window is wrong commit https://github.com/vim/vim/commit/8776889b5befd8eba66f4ad32282db36f85392a6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 15 21:42:51 2018 +0200 patch 8.0.1843: entry for 'wrap' in options window is wrong Problem: Entry for 'wrap' in options window is wrong. (John Little) Solution: Make the change apply locally.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 May 2018 21:45:06 +0200
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 Latin 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 = la.aff la.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/la.latin1.spl $SPELLDIR/la.utf-8.spl ../README_la.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
13
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 502
diff changeset
14 # NOTE: the la_LN.ISO-8859-1 locale is not available on Ubuntu.
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 502
diff changeset
15 # Use the English one instead.
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 502
diff changeset
16
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
17 $SPELLDIR/la.latin1.spl : $FILES
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 502
diff changeset
18 :sys env LANG=en_US.ISO-8859-1
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
19 $VIM -u NONE -e -c "mkspell! $SPELLDIR/la la" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
20
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
21 $SPELLDIR/la.utf-8.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
22 :sys $VIM -u NONE -e -c "set enc=utf-8"
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
23 -c "mkspell! $SPELLDIR/la la" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
24
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
25 ../README_la.txt : README_la.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
26 :copy $source $target
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
27
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
28 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
29 # Fetching the files from OpenOffice.org.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
30 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
31 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
32 :attr {fetch = $OODIR/%file%} la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
33
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
34 # 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
35 # Only download the zip file if the targets don't exist.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
36 la.aff la.dic: {buildcheck=}
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
37 :assertpkg unzip patch
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
38 :fetch la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
39 :sys $UNZIP la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
40 :delete la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
41 @if not os.path.exists('la.orig.aff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
42 :copy la.aff la.orig.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
43 @if not os.path.exists('la.orig.dic'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
44 :copy la.dic la.orig.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
45 @if os.path.exists('la.diff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
46 :sys patch <la.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
47
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
48
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
49 # Generate diff files, so that others can get the OpenOffice files and apply
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
50 # the diffs to get the Vim versions.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
51
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
52 diff:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
53 :assertpkg diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
54 :sys {force} diff -a -C 1 la.orig.aff la.aff >la.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
55 :sys {force} diff -a -C 1 la.orig.dic la.dic >>la.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
56
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
57
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
58 # Check for updated OpenOffice spell files. When there are changes the
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
59 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
60
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
61 check:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
62 :assertpkg unzip diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
63 :fetch la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
64 :mkdir tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
65 :cd tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
66 @try:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
67 @import stat
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
68 :sys $UNZIP ../la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
69 :sys {force} diff ../la.orig.aff la.aff >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
70 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
71 :copy la.aff ../la.new.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
72 :sys {force} diff ../la.orig.dic la.dic >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
73 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
74 :copy la.dic ../la.new.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
75 @finally:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
76 :cd ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
77 :delete {r}{f}{q} tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
78 :delete la.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
79
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
80
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
81 # vim: set sts=4 sw=4 :