annotate runtime/spell/ny/main.aap @ 24124:f4061617c438 v8.2.2603

patch 8.2.2603: Vim9: no effect if user command is also a function Commit: https://github.com/vim/vim/commit/77b10ffad4ebad15022614be4db2745f6a90f405 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 14 13:21:35 2021 +0100 patch 8.2.2603: Vim9: no effect if user command is also a function Problem: Vim9: no effect if user command is also a function. Solution: Check for paren following. (closes https://github.com/vim/vim/issues/7960)
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Mar 2021 13:30:03 +0100
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: 481
diff changeset
1 # Aap recipe for Chichewa Vim spell files.
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
2
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
6 @else:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
7 :progsearch VIM vim
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
8
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
9 SPELLDIR = ..
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
10 FILES = ny_MW.aff ny_MW.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
11
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
12 all: $SPELLDIR/ny.iso-8859-14.spl $SPELLDIR/ny.utf-8.spl \
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
13 $SPELLDIR/ny.ascii.spl ../README_ny.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
14
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
15 $SPELLDIR/ny.iso-8859-14.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
16 :sys $VIM -u NONE -e -c "set enc=iso-8859-14"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
17 -c "mkspell! $SPELLDIR/ny ny_MW" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
18
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
19 $SPELLDIR/ny.utf-8.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
20 :sys $VIM -u NONE -e -c "set enc=utf-8"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
21 -c "mkspell! $SPELLDIR/ny ny_MW" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
22
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
23 $SPELLDIR/ny.ascii.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
24 :sys $VIM -u NONE -e -c "mkspell! -ascii $SPELLDIR/ny ny_MW" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
25
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
26 ../README_ny.txt : README_ny_MW.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
27 :copy $source $target
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
28
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
29 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
30 # Fetching the files from OpenOffice.org.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
31 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
32 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
33 :attr {fetch = $OODIR/%file%} ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
34
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
35 # The files don't depend on the .zip file so that we can delete it.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
36 # Only download the zip file if the targets don't exist.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
37 ny_MW.aff ny_MW.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
38 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
39 :fetch ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
40 :sys $UNZIP ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
41 :delete ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
42 @if not os.path.exists('ny_MW.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
43 :copy ny_MW.aff ny_MW.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
44 @if not os.path.exists('ny_MW.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
45 :copy ny_MW.dic ny_MW.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
46 @if os.path.exists('ny_MW.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
47 :sys patch <ny_MW.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
48
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
49
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
50 # Generate diff files, so that others can get the OpenOffice files and apply
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
51 # the diffs to get the Vim versions.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
52
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
53 diff:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
54 :assertpkg diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
55 :sys {force} diff -a -C 1 ny_MW.orig.aff ny_MW.aff >ny_MW.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
56 :sys {force} diff -a -C 1 ny_MW.orig.dic ny_MW.dic >>ny_MW.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
57
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
58
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
59 # Check for updated OpenOffice spell files. When there are changes the
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
60 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
61
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
62 check:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
63 :assertpkg unzip diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
64 :fetch ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
65 :mkdir tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
66 :cd tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
67 @try:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
68 @import stat
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
69 :sys $UNZIP ../ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
70 :sys {force} diff ../ny_MW.orig.aff ny_MW.aff >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
71 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
72 :copy ny_MW.aff ../ny_MW.new.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
73 :sys {force} diff ../ny_MW.orig.dic ny_MW.dic >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
74 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
75 :copy ny_MW.dic ../ny_MW.new.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
76 @finally:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
77 :cd ..
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
78 :delete {r}{f}{q} tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
79 :delete ny_MW.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
80
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
81
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
82 # vim: set sts=4 sw=4 :