annotate runtime/spell/th/main.aap @ 14239:7457bf2db968 v8.1.0136

patch 8.1.0136: Lua tests don't cover new features commit https://github.com/vim/vim/commit/2f362bf7f9acc9ec87799d1e41bf0ae7712d1f7a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 1 19:49:27 2018 +0200 patch 8.1.0136: Lua tests don't cover new features Problem: Lua tests don't cover new features. Solution: Add more tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/3130)
author Christian Brabandt <cb@256bit.org>
date Sun, 01 Jul 2018 20:00:09 +0200
parents 06364aa0d597
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
493
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
1 # Aap recipe for Thai Vim spell files.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
2
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
6 @else:
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
7 :progsearch VIM vim
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
8
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
9 SPELLDIR = ..
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
10 FILES = th.aff th.dic
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
11
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
12 all: $SPELLDIR/th.utf-8.spl ../README_th.txt
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
13
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
14 $SPELLDIR/th.utf-8.spl : $FILES
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
15 :sys $VIM -u NONE -e -c "set enc=utf-8"
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
16 -c "mkspell! $SPELLDIR/th th" -c q
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
17
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
18 ../README_th.txt: README_th.txt
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
19 :copy $source $target
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
20
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
21 #
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
22 # Fetching the files from http://sesrc.th.net
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
23 #
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
24 HTTPDIR = http://seasrc.th.net/dict
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
25 ZIPNAME = th_18057.zip
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
26 FNAME = TH_18057.TXT
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
27
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
28 :attr {fetch = $HTTPDIR/%file%} $ZIPNAME
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
29
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
30 # The files don't depend on the .zip file so that we can delete it.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
31 # Only download the zip file if the targets don't exist.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
32 # This is a bit tricky, since the file name includes the date.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
33 #
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
34 # We get a plain list of Thai words and make the .dic file from that. The .aff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
35 # file is made from scratch.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
36 th.aff th.dic: {buildcheck=}
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
37 :assertpkg unzip iconv
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
38 :fetch $ZIPNAME
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
39 :sys unzip $ZIPNAME
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
40 :sys {force} iconv -c -f TIS-620 -t UTF-8 <$FNAME >th.dic
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
41 :delete $ZIPNAME $FNAME
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
42
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
43 :delete {force} th.aff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
44 :touch {force} th.aff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
45 @if not os.path.exists('th.orig.aff'):
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
46 :touch {force} th.orig.aff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
47 @if not os.path.exists('th.orig.dic'):
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
48 :copy th.dic th.orig.dic
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
49 @if os.path.exists('th.diff'):
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
50 :sys patch <th.diff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
51
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
52
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
53 # Generate diff files, so that others can get the OpenOffice files and apply
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
54 # the diffs to get the Vim versions.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
55
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
56 diff:
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
57 :assertpkg diff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
58 :sys {force} diff -N -a -C 1 th.orig.aff th.aff >th.diff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
59 :sys {force} diff -a -C 1 th.orig.dic th.dic >>th.diff
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
60
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
61
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
62 # Check for updated spell files. When there are changes the
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
63 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
64
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
65 check:
06364aa0d597 updated for version 7.0135
vimboss
parents:
diff changeset
66 :print Sorry, not supported.