Mercurial > vim
annotate runtime/spell/br/main.aap @ 20751:d9a2e5dcfd9f v8.2.0928
patch 8.2.0928: many type casts are used for vim_strnsave()
Commit: https://github.com/vim/vim/commit/df44a27b53586fccfc6a3aedc89061fdd9a515ff
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 7 20:49:05 2020 +0200
patch 8.2.0928: many type casts are used for vim_strnsave()
Problem: Many type casts are used for vim_strnsave().
Solution: Make the length argument size_t instead of int. (Ken Takata,
closes #5633) Remove some type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Jun 2020 21:00:03 +0200 |
parents | c590de398af9 |
children |
rev | line source |
---|---|
2152 | 1 # Aap recipe for Breton Vim spell files. |
2 | |
3 # Use a freshly compiled Vim if it exists. | |
4 @if os.path.exists('../../../src/vim'): | |
5 VIM = ../../../src/vim | |
6 @else: | |
7 :progsearch VIM vim | |
8 | |
9 SPELLDIR = .. | |
10 FILES = br_FR.aff br_FR.dic | |
11 | |
12 all: $SPELLDIR/br.latin1.spl $SPELLDIR/br.utf-8.spl ../README_br.txt | |
13 | |
14 $SPELLDIR/br.latin1.spl : $FILES | |
15 :sys $VIM -u NONE -e -c "set enc=latin1" | |
16 -c "mkspell! $SPELLDIR/br br_FR" -c q | |
17 | |
18 $SPELLDIR/br.utf-8.spl : $FILES | |
19 :sys $VIM -u NONE -e -c "set enc=UTF-8" | |
20 -c "mkspell! $SPELLDIR/br br_FR" -c q | |
21 | |
22 ../README_br.txt : package-description.txt | |
23 :copy $source $target | |
24 | |
25 # | |
26 # Fetching the files from OpenOffice.org. | |
27 # | |
7147
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
28 OODIR = http://extensions.libreoffice.org/extension-center/an-drouizig-breton-spellchecker/releases/0.13/ |
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
29 :attr {fetch = $OODIR/%file%} difazier-an-drouizig-0_13.oxt |
2152 | 30 |
31 # The files don't depend on the .zip file so that we can delete it. | |
32 # Only download the zip file if the targets don't exist. | |
33 br_FR.aff br_FR.dic: {buildcheck=} | |
34 :assertpkg unzip patch | |
7147
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
35 :fetch difazier-an-drouizig-0_13.oxt |
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
36 :sys $UNZIP difazier-an-drouizig-0_13.oxt |
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
37 :delete difazier-an-drouizig-0_13.oxt |
2152 | 38 :copy dictionaries/br_FR.aff br_FR.aff |
39 :copy dictionaries/br_FR.dic br_FR.dic | |
40 # The br_FR.aff file contains a BOM, remove it. | |
41 :sys $VIM -u NONE -e -c "set enc=utf-8" | |
42 -c "e br_FR.aff" | |
43 -c "set nobomb ff=unix" | |
44 -c "update" -c q | |
45 :sys $VIM -u NONE -e -c "set enc=utf-8" | |
46 -c "e br_FR.dic" | |
47 -c "set nobomb ff=unix" | |
48 -c "update" -c q | |
49 @if not os.path.exists('br_FR.orig.aff'): | |
50 :copy br_FR.aff br_FR.orig.aff | |
51 @if os.path.exists('br_FR.diff'): | |
52 :sys patch <br_FR.diff | |
53 | |
54 # Generate diff files, so that others can get the OpenOffice files and apply | |
55 # the diffs to get the Vim versions. | |
56 | |
57 diff: | |
58 :assertpkg diff | |
59 :sys {force} diff -a -C 1 dictionaries/br_FR.aff br_FR.aff >br_FR.diff | |
60 :sys {force} diff -a -C 1 dictionaries/br_FR.dic br_FR.dic >>br_FR.diff | |
61 | |
62 | |
63 # Check for updated OpenOffice spell files. When there are changes the | |
64 # ".new.aff" and ".new.dic" files are left behind for manual inspection. | |
65 | |
66 check: | |
67 :assertpkg unzip diff | |
7147
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
68 :fetch difazier-an-drouizig-0_13.oxt |
2152 | 69 :mkdir tmp |
70 :cd tmp | |
71 @try: | |
72 @import stat | |
7147
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
73 :sys $UNZIP ../difazier-an-drouizig-0_13.oxt |
2152 | 74 :sys {force} diff ../dictionaries/br_FR.aff br_FR.aff >d |
75 @if os.stat('d')[stat.ST_SIZE] > 0: | |
76 :copy br_FR.aff ../br_FR.new.aff | |
77 :sys {force} diff ../dictionaries/br_FR.dic br_FR.dic >d | |
78 @if os.stat('d')[stat.ST_SIZE] > 0: | |
79 :copy br_FR.dic ../br_FR.new.dic | |
80 @finally: | |
81 :cd .. | |
82 :delete {r}{f}{q} tmp | |
7147
c590de398af9
commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7
Christian Brabandt <cb@256bit.org>
parents:
4119
diff
changeset
|
83 :delete difazier-an-drouizig-0_13.oxt |
2152 | 84 |
85 | |
86 # vim: set sts=4 sw=4 : |