annotate runtime/spell/am/main.aap @ 10777:80b286d6d38d v8.0.0278

patch 8.0.0278: GUI test fails on MS-Windows commit https://github.com/vim/vim/commit/f1ab9c137060a4d3aa1e69bcbbed02342cd746a3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 12:32:58 2017 +0100 patch 8.0.0278: GUI test fails on MS-Windows Problem: GUI test fails on MS-Windows. Solution: Check that tester_HOME exists.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 12:45:03 +0100
parents 4321aae7e769
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
490
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
1 # Aap recipe for Amharic Vim spell files.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
2
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
6 @else:
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
7 :progsearch VIM vim
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
8
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
9 SPELLDIR = ..
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
10 FILES = am_ET.aff am_ET.dic
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
11
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
12 all: $SPELLDIR/am.utf-8.spl ../README_am.txt
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
13
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
14 $SPELLDIR/am.utf-8.spl : $FILES
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
15 :sys env LANG=am_ET.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/am am_ET" -c q
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
16
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
17 ../README_am.txt: README_am.txt
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
18 :copy $source $target
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
19
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
20 #
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
21 # Fetching the files from Hunspell.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
22 #
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
23 HTTPDIR = http://hunspell.sourceforge.net
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
24 TARNAME = am-demo.tar.gz
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
25 :attr {fetch = $HTTPDIR/%file%} $TARNAME
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
26
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
27 # The files don't depend on the .zip file so that we can delete it.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
28 # Only download the zip file if the targets don't exist.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
29 # This is a bit tricky, since the file name includes the date.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
30 am_ET.aff am_ET.dic: {buildcheck=}
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
31 :assertpkg tar gzip
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
32 :fetch $TARNAME
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
33 :sys gzip -d -c $TARNAME | tar xf -
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
34 :move am/am.aff am_ET.aff
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
35 :move am/am.dic am_ET.dic
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
36 :move am/README README_am.txt
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
37 :delete {recursive} am
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
38 :delete $TARNAME
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
39 @if not os.path.exists('am_ET.orig.aff'):
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
40 :copy am_ET.aff am_ET.orig.aff
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
41 @if not os.path.exists('am_ET.orig.dic'):
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
42 :copy am_ET.dic am_ET.orig.dic
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
43 @if os.path.exists('am_ET.diff'):
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
44 :sys patch <am_ET.diff
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
45
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
46
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
47 # Generate diff files, so that others can get the OpenOffice files and apply
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
48 # the diffs to get the Vim versions.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
49
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
50 diff:
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
51 :assertpkg diff
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
52 :sys {force} diff -a -C 1 am_ET.orig.aff am_ET.aff >am_ET.diff
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
53 :sys {force} diff -a -C 1 am_ET.orig.dic am_ET.dic >>am_ET.diff
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
54
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
55
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
56 # Check for updated spell files. When there are changes the
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
57 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
58
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
59 check:
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
60 :print Sorry, not implemented yet.
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
61
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
62
4321aae7e769 updated for version 7.0134
vimboss
parents:
diff changeset
63 # vim: set sts=4 sw=4 :