annotate runtime/spell/eo/main.aap @ 20555:eedaa9a30ab4 v8.2.0831

patch 8.2.0831: compiler warnings for integer sizes Commit: https://github.com/vim/vim/commit/f4b68e9056f8ddb64c3d7141df138fe099575abf Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 27 21:22:14 2020 +0200 patch 8.2.0831: compiler warnings for integer sizes Problem: Compiler warnings for integer sizes. Solution: Add type casts. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 May 2020 21:30:04 +0200
parents b9e314fe473f
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 Esperanto 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 = ..
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
10 FILES = eo_l3.aff eo_l3.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
11
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
12 all: $SPELLDIR/eo.iso-8859-3.spl $SPELLDIR/eo.utf-8.spl ../README_eo.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
13
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
14 $SPELLDIR/eo.iso-8859-3.spl : $FILES
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
15 :sys $VIM -u NONE -e -c "set enc=iso-8859-3"
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
16 -c "mkspell! $SPELLDIR/eo eo_l3" -c q
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
17
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
18 $SPELLDIR/eo.utf-8.spl : $FILES
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
19 :sys $VIM -u NONE -e -c "set enc=utf-8"
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
20 -c "mkspell! $SPELLDIR/eo eo_l3" -c q
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
21
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
22 ../README_eo.txt : README_eo_l3.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
23 :copy $source $target
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
24 # fix missing newline
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 482
diff changeset
25 :sys $VIM -u NONE -e -c "set ff=unix" -c wq $target
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
26
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
27 #
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
28 # Fetching the files from OpenOffice.org.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
29 #
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
30 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
31 :attr {fetch = $OODIR/%file%} eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
32
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
33 # 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
34 # Only download the zip file if the targets don't exist.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
35 eo_l3.aff eo_l3.dic: {buildcheck=}
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
36 :assertpkg unzip patch
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
37 :fetch eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
38 :sys $UNZIP eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
39 :delete eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
40 @if not os.path.exists('eo_l3.orig.aff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
41 :copy eo_l3.aff eo_l3.orig.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
42 @if not os.path.exists('eo_l3.orig.dic'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
43 :copy eo_l3.dic eo_l3.orig.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
44 @if os.path.exists('eo_l3.diff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
45 :sys patch <eo_l3.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
46
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
47
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
48 # Generate diff files, so that others can get the OpenOffice files and apply
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
49 # the diffs to get the Vim versions.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
50
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
51 diff:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
52 :assertpkg diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
53 :sys {force} diff -a -C 1 eo_l3.orig.aff eo_l3.aff >eo_l3.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
54 :sys {force} diff -a -C 1 eo_l3.orig.dic eo_l3.dic >>eo_l3.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
55
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
56
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
57 # Check for updated OpenOffice spell files. When there are changes the
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
58 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
59
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
60 check:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
61 :assertpkg unzip diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
62 :fetch eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
63 :mkdir tmp
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
64 :cd tmp
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
65 @try:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
66 @import stat
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
67 :sys $UNZIP ../eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
68 :sys {force} diff ../eo_l3.orig.aff eo_l3.aff >d
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
69 @if os.stat('d')[stat.ST_SIZE] > 0:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
70 :copy eo_l3.aff ../eo_l3.new.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
71 :sys {force} diff ../eo_l3.orig.dic eo_l3.dic >d
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
72 @if os.stat('d')[stat.ST_SIZE] > 0:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
73 :copy eo_l3.dic ../eo_l3.new.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
74 @finally:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
75 :cd ..
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
76 :delete {r}{f}{q} tmp
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
77 :delete eo.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
78
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
79
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
80 # vim: set sts=4 sw=4 :