annotate runtime/spell/pl/main.aap @ 29228:24b7e14d55e2 v8.2.5133

patch 8.2.5133: MacOS: build fails Commit: https://github.com/vim/vim/commit/1f68d992cd2fd7f484fbdc14eb8a9feefe59bec8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 19 17:22:49 2022 +0100 patch 8.2.5133: MacOS: build fails Problem: MacOS: build fails. Solution: Remove "#if 0" from timer_delete().
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jun 2022 18:30:04 +0200
parents e63691e7c504
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
7472c565592a updated for version 7.0117
vimboss
parents: 407
diff changeset
1 # Aap recipe for Polish Vim spell files.
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
2
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
6 @else:
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 448
diff changeset
7 :progsearch VIM vim
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
8
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
9 SPELLDIR = ..
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
10 FILES = pl_PL.aff pl_PL.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
11
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
12 all: $SPELLDIR/pl.iso-8859-2.spl $SPELLDIR/pl.utf-8.spl \
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
13 $SPELLDIR/pl.cp1250.spl ../README_pl.txt
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
14
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
15 $SPELLDIR/pl.iso-8859-2.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
16 :sys env LANG=pl_PL.ISO8859-2 $VIM -u NONE -e -c "mkspell! $SPELLDIR/pl pl_PL" -c q
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
17
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
18 $SPELLDIR/pl.utf-8.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
19 :sys env LANG=pl_PL.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/pl pl_PL" -c q
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
20
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
21 $SPELLDIR/pl.cp1250.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
22 :sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/pl pl_PL" -c q
400
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
23
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
24 ../README_pl.txt: README_pl_PL.txt
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
25 :copy $source $target
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
26
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
27 #
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
28 # Fetching the files from OpenOffice.org.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
29 #
400
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
30 #OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
31 #:attr {fetch = $OODIR/%file%} pl_PL.zip
400
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
32
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
33 #
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
34 # Fetching the files from
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
35 #
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
36 HTTPDIR = http://www.kurnik.pl/dictionary
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
37
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
38 # The files don't depend on the .zip file so that we can delete it.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
39 # Only download the zip file if the targets don't exist.
400
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
40 # This is a bit tricky, since the file name includes the date.
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
41 pl_PL.aff pl_PL.dic: {buildcheck=}
400
a4ba09cd859e updated for version 7.0105
vimboss
parents: 388
diff changeset
42 :assertpkg tar bunzip2
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
43 fname = alt-myspell-pl.tar.bz2
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
44 :attr {fetch = $HTTPDIR/%file%} $fname
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
45 :fetch $fname
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
46 :sys bunzip2 -c $fname | tar xf -
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
47 :move alt-myspell-pl-20[0-9]*/* .
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
48 :deldir alt-myspell-pl-20[0-9]*
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
49 :delete $fname
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
50 @if not os.path.exists('pl_PL.orig.aff'):
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
51 :copy pl_PL.aff pl_PL.orig.aff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
52 @if not os.path.exists('pl_PL.orig.dic'):
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
53 :copy pl_PL.dic pl_PL.orig.dic
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 448
diff changeset
54 @if os.path.exists('pl_PL.diff'):
c4d200412ae9 updated for version 7.0121
vimboss
parents: 448
diff changeset
55 :sys patch <pl_PL.diff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
56
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
57
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
58 # Generate diff files, so that others can get the OpenOffice files and apply
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
59 # the diffs to get the Vim versions.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
60
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
61 diff:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
62 :assertpkg diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
63 :sys {force} diff -a -C 1 pl_PL.orig.aff pl_PL.aff >pl_PL.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
64 :sys {force} diff -a -C 1 pl_PL.orig.dic pl_PL.dic >>pl_PL.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
65
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
66
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
67 # Check for updated spell files. When there are changes the
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
68 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
69
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
70 check:
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
71 :assertpkg tar bunzip2 diff
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
72 fname = alt-myspell-pl.tar.bz2
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
73 :attr {fetch = $HTTPDIR/%file%} $fname
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
74 :fetch $fname
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
75 :sys bunzip2 -c $fname | tar xf -
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 482
diff changeset
76 :cd alt-myspell-pl-20[0-9]*
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
77 @try:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
78 @import stat
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
79 :sys $UNZIP ../pl_PL.zip
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
80 :sys {force} diff ../pl_PL.orig.aff pl_PL.aff >d
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
81 @if os.stat('d')[stat.ST_SIZE] > 0:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
82 :copy pl_PL.aff ../pl_PL.new.aff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
83 :sys {force} diff ../pl_PL.orig.dic pl_PL.dic >d
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
84 @if os.stat('d')[stat.ST_SIZE] > 0:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
85 :copy pl_PL.dic ../pl_PL.new.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
86 @finally:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
87 :cd ..
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
88 :delete {r}{f}{q} $base
66080ac5dab7 updated for version 7.0130
vimboss
parents: 456
diff changeset
89 :delete $fname
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
90
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
91
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
92 # vim: set sts=4 sw=4 :