annotate runtime/spell/bg/main.aap @ 18418:2329061e6289 v8.1.2203

patch 8.1.2203: running libvterm tests without the +terminal feature Commit: https://github.com/vim/vim/commit/823edd1eed00329e4b269991155bbdb1d9aaa540 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 23 22:35:36 2019 +0200 patch 8.1.2203: running libvterm tests without the +terminal feature Problem: Running libvterm tests without the +terminal feature. Solution: Only add the libvterm test target when building libvterm.
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Oct 2019 22:45:03 +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: 481
diff changeset
1 # Aap recipe for Bulgarian Vim spell files.
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
2
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
6 @else:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
7 :progsearch VIM vim
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
8
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
9 SPELLDIR = ..
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
10 FILES = bg_BG.aff bg_BG.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
11
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
12 all: $SPELLDIR/bg.cp1251.spl $SPELLDIR/bg.utf-8.spl ../README_bg.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
13
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
14 $SPELLDIR/bg.cp1251.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
15 :sys env LANG=bg_BG.CP1251 $VIM -u NONE -e -c "mkspell! $SPELLDIR/bg bg_BG" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
16
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
17 $SPELLDIR/bg.utf-8.spl : $FILES
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
18 :sys env LANG=bg_BG.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/bg bg_BG" -c q
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
19
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
20 ../README_bg.txt: README_bg_BG.txt
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
21 :copy $source $target
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
22
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
23 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
24 # Fetching the files from OpenOffice.org.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
25 #
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
26 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
27 :attr {fetch = $OODIR/%file%} bg_BG.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
28
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
29 # The files don't depend on the .zip file so that we can delete it.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
30 # Only download the zip file if the targets don't exist.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
31 # This is a bit tricky, since the file name includes the date.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
32 bg_BG.aff bg_BG.dic: {buildcheck=}
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
33 :assertpkg unzip patch
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
34 :fetch bg_BG.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
35 :sys $UNZIP bg_BG.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
36 :delete bg_BG.zip
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 500
diff changeset
37 :sys $VIM bg_BG.aff -u NONE -e -c "set ff=unix" -c update -c q
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 500
diff changeset
38 :sys $VIM bg_BG.dic -u NONE -e -c "set ff=unix" -c update -c q
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 500
diff changeset
39 :sys $VIM README_bg_BG.txt -u NONE -e -c "set ff=unix" -c update -c q
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
40 @if not os.path.exists('bg_BG.orig.aff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
41 :copy bg_BG.aff bg_BG.orig.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
42 @if not os.path.exists('bg_BG.orig.dic'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
43 :copy bg_BG.dic bg_BG.orig.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
44 @if os.path.exists('bg_BG.diff'):
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
45 :sys patch <bg_BG.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
46
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
47
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
48 # Generate diff files, so that others can get the OpenOffice files and apply
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
49 # the diffs to get the Vim versions.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
50
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
51 diff:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
52 :assertpkg diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
53 :sys {force} diff -a -C 1 bg_BG.orig.aff bg_BG.aff >bg_BG.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
54 :sys {force} diff -a -C 1 bg_BG.orig.dic bg_BG.dic >>bg_BG.diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
55
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
56
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
57 # Check for updated OpenOffice spell files. When there are changes the
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
58 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
59
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
60 check:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
61 :assertpkg unzip diff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
62 :fetch bg_BG.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
63 :mkdir tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
64 :cd tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
65 @try:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
66 @import stat
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
67 :sys $UNZIP ../bg_BG.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
68 :sys {force} diff ../bg_BG.orig.aff bg_BG.aff >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
69 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
70 :copy bg_BG.aff ../bg_BG.new.aff
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
71 :sys {force} diff ../bg_BG.orig.dic bg_BG.dic >d
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
72 @if os.stat('d')[stat.ST_SIZE] > 0:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
73 :copy bg_BG.dic ../bg_BG.new.dic
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
74 @finally:
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
75 :cd ..
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
76 :delete {r}{f}{q} tmp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
77 :delete bg_BG.zip
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
78
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
79
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
80 # vim: set sts=4 sw=4 :