annotate runtime/spell/fo/main.aap @ 7995:d244f2e46d69 v7.4.1292

commit https://github.com/vim/vim/commit/2fc83fcd1d6dfd4728a2ef70e2316f79203c7ee0 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 8 22:57:24 2016 +0100 patch 7.4.1292 Problem: Some compilers complain about uninitialzed variable, even though all possible cases are handled. (Dominique Pelle) Solution: Add a default initialization.
author Christian Brabandt <cb@256bit.org>
date Mon, 08 Feb 2016 23:00:05 +0100
parents 7fe13e0f5dce
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
1 # Aap recipe for Faroese Vim spell files.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
2
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
6 @else:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
7 :progsearch VIM vim
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
8
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
9 SPELLDIR = ..
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
10 FILES = fo_FO.aff fo_FO.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
11
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
12 all: $SPELLDIR/fo.latin1.spl $SPELLDIR/fo.utf-8.spl ../README_fo.txt
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
13
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
14 $SPELLDIR/fo.latin1.spl : $FILES
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
15 :sys env LANG=fo_FO.ISO8859-1
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/fo fo_FO" -c q
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
17
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
18 $SPELLDIR/fo.utf-8.spl : $FILES
615
7fe13e0f5dce updated for version 7.0175
vimboss
parents: 502
diff changeset
19 :sys $VIM -u NONE -e -c "set enc=utf-8" -c "mkspell! $SPELLDIR/fo fo_FO" -c q
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
20
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
21 ../README_fo.txt : README_fo_FO.txt Copyright
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
22 :cat $source >! $target
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
23
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
24 #
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
25 # Fetching the files from OpenOffice.org.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
26 #
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
27 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
28 :attr {fetch = $OODIR/%file%} fo_FO.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
29
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
30 # The files don't depend on the .zip file so that we can delete it.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
31 # Only download the zip file if the targets don't exist.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
32 fo_FO.aff fo_FO.dic: {buildcheck=}
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
33 :assertpkg unzip patch
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
34 :fetch fo_FO.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
35 :sys $UNZIP fo_FO.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
36 :delete fo_FO.zip
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents: 482
diff changeset
37 :delete contributors fo_FO.excluded Makefile COPYING
482
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
38 @if not os.path.exists('fo_FO.orig.aff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
39 :copy fo_FO.aff fo_FO.orig.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
40 @if not os.path.exists('fo_FO.orig.dic'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
41 :copy fo_FO.dic fo_FO.orig.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
42 @if os.path.exists('fo_FO.diff'):
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
43 :sys patch <fo_FO.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
44
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
45
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
46 # Generate diff files, so that others can get the OpenOffice files and apply
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
47 # the diffs to get the Vim versions.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
48
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
49 diff:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
50 :assertpkg diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
51 :sys {force} diff -a -C 1 fo_FO.orig.aff fo_FO.aff >fo_FO.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
52 :sys {force} diff -a -C 1 fo_FO.orig.dic fo_FO.dic >>fo_FO.diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
53
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
54
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
55 # Check for updated OpenOffice spell files. When there are changes the
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
56 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
57
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
58 check:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
59 :assertpkg unzip diff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
60 :fetch fo_FO.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
61 :mkdir tmp
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
62 :cd tmp
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
63 @try:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
64 @import stat
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
65 :sys $UNZIP ../fo_FO.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
66 :sys {force} diff ../fo_FO.orig.aff fo_FO.aff >d
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
67 @if os.stat('d')[stat.ST_SIZE] > 0:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
68 :copy fo_FO.aff ../fo_FO.new.aff
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
69 :sys {force} diff ../fo_FO.orig.dic fo_FO.dic >d
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
70 @if os.stat('d')[stat.ST_SIZE] > 0:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
71 :copy fo_FO.dic ../fo_FO.new.dic
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
72 @finally:
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
73 :cd ..
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
74 :delete {r}{f}{q} tmp
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
75 :delete fo_FO.zip
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
76
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
77
6f8b578776ab updated for version 7.0131
vimboss
parents:
diff changeset
78 # vim: set sts=4 sw=4 :