annotate runtime/spell/sv/main.aap @ 5682:a1c07956171a v7.4.187

updated for version 7.4.187 Problem: Delete that crosses line break splits multi-byte character. Solution: Advance a character instead of a byte. (Cade Foster)
author Bram Moolenaar <bram@vim.org>
date Sat, 22 Feb 2014 23:49:35 +0100
parents 9272cc83214f
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 Swedish Vim spell files.
557
862863033fdd updated for version 7.0158
vimboss
parents: 502
diff changeset
2 #
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 557
diff changeset
3 # Maintainer: Mattias Winther <vim@mattias.winthernet.se>
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
4
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
5 # Use a freshly compiled Vim if it exists.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
6 @if os.path.exists('../../../src/vim'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
7 VIM = ../../../src/vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
8 @else:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
9 :progsearch VIM vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
10
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
11 SPELLDIR = ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
12 FILES = sv_SE.aff sv_SE.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
13
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
14 all: $SPELLDIR/sv.latin1.spl $SPELLDIR/sv.utf-8.spl ../README_sv.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
15
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
16 $SPELLDIR/sv.latin1.spl : $FILES
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 557
diff changeset
17 :sys env LANG=sv_SE.ISO-8859-1
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
18 $VIM -u NONE -e -c "mkspell! $SPELLDIR/sv sv_SE" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
19
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
20 $SPELLDIR/sv.utf-8.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
21 :sys env LANG=sv_SE.UTF-8
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
22 $VIM -u NONE -e -c "mkspell! $SPELLDIR/sv sv_SE" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
23
2341
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
24 ../README_sv.txt : README_sv.txt
502
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 #
2308
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
30 OODIR = http://extensions.services.openoffice.org/e-files/1080/7
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
31 :attr {fetch = $OODIR/%file%} ooo_swedish_dict_1.43.oxt
502
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 sv_SE.aff sv_SE.dic: {buildcheck=}
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
36 :assertpkg unzip patch
2308
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
37 :fetch ooo_swedish_dict_1.43.oxt
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
38 :sys $UNZIP ooo_swedish_dict_1.43.oxt
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
39 :delete ooo_swedish_dict_1.43.oxt
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 557
diff changeset
40 :delete {r} META-INF
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 557
diff changeset
41 :copy dictionaries/sv_SE.aff sv_SE.aff
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 557
diff changeset
42 :copy dictionaries/sv_SE.dic sv_SE.dic
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 557
diff changeset
43 :delete {r} dictionaries dictionaries.xcu description.xml
2341
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
44 :delete {f} README_sv.txt
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
45 :sys $VIM README_sv.txt -u NONE -N -e -c "0read LICENSE_en_US.txt" -c "read LICENSE_sv_SE.txt" -c "set ff=unix" -c write -c q
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
46 :delete LICENSE_en_US.txt LICENSE_sv_SE.txt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
47 @if not os.path.exists('sv_SE.orig.aff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
48 :copy sv_SE.aff sv_SE.orig.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
49 @if not os.path.exists('sv_SE.orig.dic'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
50 :copy sv_SE.dic sv_SE.orig.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
51 @if os.path.exists('sv_SE.diff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
52 :sys patch <sv_SE.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
53
2341
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
54 # Delete all the generated files, start from scratch
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
55 clean:
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
56 :delete {f} sv_SE.aff sv_SE.dic
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
57 :delete {f} sv_SE.aff.orig sv_SE.dic.orig
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
58 :delete {f} sv_SE.orig.aff sv_SE.orig.dic
9272cc83214f Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2308
diff changeset
59 :delete {f} README_sv.txt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
60
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
61 # Generate diff files, so that others can get the OpenOffice files and apply
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
62 # the diffs to get the Vim versions.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
63
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
64 diff:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
65 :assertpkg diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
66 :sys {force} diff -a -C 1 sv_SE.orig.aff sv_SE.aff >sv_SE.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
67 :sys {force} diff -a -C 1 sv_SE.orig.dic sv_SE.dic >>sv_SE.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
68
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
69
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
70 # Check for updated OpenOffice spell files. When there are changes the
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
71 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
72
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
73 check:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
74 :assertpkg unzip diff
2308
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
75 :fetch ooo_swedish_dict_1.43.oxt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
76 :mkdir tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
77 :cd tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
78 @try:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
79 @import stat
2308
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
80 :sys $UNZIP ../ooo_swedish_dict_1.43.oxt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
81 :sys {force} diff ../sv_SE.orig.aff sv_SE.aff >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
82 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
83 :copy sv_SE.aff ../sv_SE.new.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
84 :sys {force} diff ../sv_SE.orig.dic sv_SE.dic >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
85 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
86 :copy sv_SE.dic ../sv_SE.new.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
87 @finally:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
88 :cd ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
89 :delete {r}{f}{q} tmp
2308
cb025511f6b6 Minor runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2292
diff changeset
90 :delete ooo_swedish_dict_1.43.oxt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
91
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
92
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
93 # vim: set sts=4 sw=4 :