annotate runtime/spell/sl/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 52e76e2b5b65
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 Slovenian 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 = sl_SI.aff sl_SI.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/sl.iso-8859-2.spl $SPELLDIR/sl.utf-8.spl \
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
13 $SPELLDIR/sl.cp1250.spl ../README_sl.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
14
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
15 $SPELLDIR/sl.iso-8859-2.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
16 :sys env LANG=sl_SI.ISO8859-2 $VIM -u NONE -e -c "mkspell! $SPELLDIR/sl sl_SI" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
17
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
18 $SPELLDIR/sl.utf-8.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
19 :sys env LANG=sl_SI.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/sl sl_SI" -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/sl.cp1250.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
22 :sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/sl sl_SI" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
23
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
24 ../README_sl.txt: README_sl_SI.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
25 :copy $source $target
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
26
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
27 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
28 # Fetching the files from OpenOffice.org.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
29 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
30 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
31 :attr {fetch = $OODIR/%file%} sl_SI.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
32
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
33 # 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
34 # Only download the zip file if the targets don't exist.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
35 # This is a bit tricky, since the file name includes the date.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
36 sl_SI.aff sl_SI.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 sl_SI.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
39 :sys $UNZIP sl_SI.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
40 :delete sl_SI.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
41 @if not os.path.exists('sl_SI.orig.aff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
42 :copy sl_SI.aff sl_SI.orig.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
43 @if not os.path.exists('sl_SI.orig.dic'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
44 :copy sl_SI.dic sl_SI.orig.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
45 @if os.path.exists('sl_SI.diff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
46 :sys patch <sl_SI.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 sl_SI.orig.aff sl_SI.aff >sl_SI.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
55 :sys {force} diff -a -C 1 sl_SI.orig.dic sl_SI.dic >>sl_SI.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 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 sl_SI.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 ../sl_SI.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
69 :sys {force} diff ../sl_SI.orig.aff sl_SI.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 sl_SI.aff ../sl_SI.new.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
72 :sys {force} diff ../sl_SI.orig.dic sl_SI.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 sl_SI.dic ../sl_SI.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 sl_SI.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 :