annotate runtime/spell/hu/main.aap @ 26780:b24b2217ff9e v8.2.3918

patch 8.2.3918: function list test fails Commit: https://github.com/vim/vim/commit/be4e223eadaa765bf2957f196e4d4b6014057bd1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 27 21:42:57 2021 +0000 patch 8.2.3918: function list test fails Problem: Function list test fails. Solution: Adjust the test for the new location of the function list.
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Dec 2021 22:45:04 +0100
parents 11d40fc82f11
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 Hungarian 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 = ..
3682
11d40fc82f11 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 827
diff changeset
10 VIMRC = ../spell.vim
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
11 FILES = hu_HU.aff hu_HU.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
12
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
13 all: $SPELLDIR/hu.iso-8859-2.spl $SPELLDIR/hu.utf-8.spl \
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
14 $SPELLDIR/hu.cp1250.spl ../README_hu.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
15
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
16 $SPELLDIR/hu.iso-8859-2.spl : $FILES
3682
11d40fc82f11 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 827
diff changeset
17 :sys env LANG=hu_HU.ISO8859-2 $VIM -u $VIMRC -e -c "mkspell! $SPELLDIR/hu hu_HU" -c q
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
18
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
19 $SPELLDIR/hu.utf-8.spl : $FILES
3682
11d40fc82f11 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 827
diff changeset
20 :sys env LANG=hu_HU.UTF-8 $VIM -u $VIMRC -e -c "mkspell! $SPELLDIR/hu hu_HU" -c q
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
21
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
22 $SPELLDIR/hu.cp1250.spl : $FILES
3682
11d40fc82f11 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 827
diff changeset
23 :sys $VIM -u $VIMRC -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/hu hu_HU" -c q
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
24
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
25 ../README_hu.txt: README_hu_HU.txt
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
26 :copy $source $target
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
27
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
28 #
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
29 # Fetching the files from OpenOffice.org.
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
30 #
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
31 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
32 :attr {fetch = $OODIR/%file%} hu_HU.zip
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
33
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
34 # 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
35 # Only download the zip file if the targets don't exist.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
36 # This is a bit tricky, since the file name includes the date.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
37 hu_HU.aff hu_HU.dic: {buildcheck=}
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
38 :assertpkg unzip patch
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
39 :fetch hu_HU.zip
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
40 :sys $UNZIP hu_HU.zip
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
41 :delete hu_HU.zip
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
42 @if not os.path.exists('hu_HU.orig.aff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
43 :copy hu_HU.aff hu_HU.orig.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
44 @if not os.path.exists('hu_HU.orig.dic'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
45 :copy hu_HU.dic hu_HU.orig.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
46 @if os.path.exists('hu_HU.diff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
47 :sys patch <hu_HU.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
48
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
49
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
50 # Generate diff files, so that others can get the OpenOffice files and apply
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
51 # the diffs to get the Vim versions.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
52
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
53 diff:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
54 :assertpkg diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
55 :sys {force} diff -a -C 1 hu_HU.orig.aff hu_HU.aff >hu_HU.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
56 :sys {force} diff -a -C 1 hu_HU.orig.dic hu_HU.dic >>hu_HU.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
57
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
58
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
59 # Check for updated OpenOffice spell files. When there are changes the
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
60 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
61
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
62 check:
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
63 :assertpkg unzip diff
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
64 :fetch hu_HU.zip
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
65 :mkdir tmp
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
66 :cd tmp
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
67 @try:
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
68 @import stat
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
69 :sys $UNZIP ../hu_HU.zip
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
70 :sys {force} diff ../hu_HU.orig.aff hu_HU.aff >d
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
71 @if os.stat('d')[stat.ST_SIZE] > 0:
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
72 :copy hu_HU.aff ../hu_HU.new.aff
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
73 :sys {force} diff ../hu_HU.orig.dic hu_HU.dic >d
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
74 @if os.stat('d')[stat.ST_SIZE] > 0:
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
75 :copy hu_HU.dic ../hu_HU.new.dic
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
76 @finally:
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
77 :cd ..
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
78 :delete {r}{f}{q} tmp
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
79 :delete hu_HU.zip
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 822
diff changeset
80
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
81
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
82 # vim: set sts=4 sw=4 :