annotate runtime/spell/ca/main.aap @ 33191:4efe5f797919 v9.0.1875

patch 9.0.1875: Vim9: improve test for disassemble + static Commit: https://github.com/vim/vim/commit/28a60f898d5cd7023596b0e96a081b1573edc807 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Tue Sep 5 20:42:18 2023 +0200 patch 9.0.1875: Vim9: improve test for disassemble + static Problem: Vim9: improve test for disassemble + static Solution: Add a Vim9 script disassemble test for an interface with static members closes: #13037 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2023 20:45:05 +0200
parents b9e314fe473f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
1 # Aap recipe for Catelan (Spain) Vim spell files.
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 = ca_ES.aff ca_ES.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/ca.latin1.spl $SPELLDIR/ca.utf-8.spl ../README_ca.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
13
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
14 $SPELLDIR/ca.latin1.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
15 :sys env LANG=ca_ES.ISO8859-1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ca ca_ES" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
17
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
18 $SPELLDIR/ca.utf-8.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
19 :sys env LANG=ca_ES.UTF-8
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
20 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ca ca_ES" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
21
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
22 ../README_ca.txt : README_ca_ES.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
23 :copy $source $target
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
24
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
25 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
26 # Fetching the files from OpenOffice.org.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
27 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
28 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
29 :attr {fetch = $OODIR/%file%} ca_ES.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
30
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
31 # 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
32 # Only download the zip file if the targets don't exist.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
33 # Make sure the files are in Unix fileformat
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
34 ca_ES.aff ca_ES.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
35 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
36 :fetch ca_ES.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
37 :sys $UNZIP ca_ES.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
38 :delete ca_ES.zip
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 482
diff changeset
39 :sys $VIM ca_ES.aff -u NONE -c "set ff=unix" -c "update" -c q
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 482
diff changeset
40 :sys $VIM ca_ES.dic -u NONE -c "set ff=unix" -c "update" -c q
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
41 @if not os.path.exists('ca_ES.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
42 :copy ca_ES.aff ca_ES.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
43 @if not os.path.exists('ca_ES.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
44 :copy ca_ES.dic ca_ES.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
45 @if os.path.exists('ca_ES.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
46 :sys patch <ca_ES.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
47
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
48
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
49 # Generate diff files, so that others can get the OpenOffice files and apply
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
50 # the diffs to get the Vim versions.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
51
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
52 diff:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
53 :assertpkg diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
54 :sys {force} diff -a -C 1 ca_ES.orig.aff ca_ES.aff >ca_ES.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
55 :sys {force} diff -a -C 1 ca_ES.orig.dic ca_ES.dic >>ca_ES.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
56
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
57
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
58 # Check for updated OpenOffice spell files. When there are changes the
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
59 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
60
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
61 check:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
62 :assertpkg unzip diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
63 :fetch ca_ES.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
64 :mkdir tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
65 :cd tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
66 @try:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
67 @import stat
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
68 :sys $UNZIP ../ca_ES.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
69 :sys {force} diff ../ca_ES.orig.aff ca_ES.aff >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
70 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
71 :copy ca_ES.aff ../ca_ES.new.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
72 :sys {force} diff ../ca_ES.orig.dic ca_ES.dic >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
73 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
74 :copy ca_ES.dic ../ca_ES.new.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
75 @finally:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
76 :cd ..
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
77 :delete {r}{f}{q} tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
78 :delete ca_ES.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
79
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
80
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
81 # vim: set sts=4 sw=4 :