annotate runtime/spell/pl/main.aap @ 388:f92bb1845823 v7.0101

updated for version 7.0101
author vimboss
date Sun, 03 Jul 2005 21:39:27 +0000
parents
children a4ba09cd859e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
1 # Aap recipe for Dutch Vim spell files.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
2
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
6 @else:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
7 VIM = vim
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
8
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
9 SPELLDIR = ..
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
10 FILES = pl_PL.aff pl_PL.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
11
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
12 all: $(SPELLDIR)/pl.iso-8859-2.spl $(SPELLDIR)/pl.utf-8.spl ../README_pl.txt
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
13
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
14 $(SPELLDIR)/pl.iso-8859-2.spl : $(VIM) $(FILES)
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
15 :sys env LANG=pl_PL.ISO8859-2 $(VIM) -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
16
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
17 $(SPELLDIR)/pl.utf-8.spl : $(VIM) $(FILES)
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
18 :sys env LANG=pl_PL.UTF-8 $(VIM) -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
19
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
20 ../README_pl.txt: README_pl_PL.txt
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
21 :copy $source $target
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
22
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
23 #
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
24 # Fetching the files from OpenOffice.org.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
25 #
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
26 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
27 :attr {fetch = $(OODIR)/%file%} pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
28
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
29 # The files don't depend on the .zip file so that we can delete it.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
30 # Only download the zip file if the targets don't exist.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
31 pl_PL.aff pl_PL.dic: {buildcheck=}
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
32 :assertpkg unzip patch
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
33 :fetch pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
34 :sys $(UNZIP) pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
35 :delete pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
36 @if not os.path.exists('pl_PL.orig.aff'):
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
37 :copy pl_PL.aff pl_PL.orig.aff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
38 @if not os.path.exists('pl_PL.orig.dic'):
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
39 :copy pl_PL.aff pl_PL.orig.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
40 :sys patch <pl_PL.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
41
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
42
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
43 # Generate diff files, so that others can get the OpenOffice files and apply
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
44 # the diffs to get the Vim versions.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
45
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
46 diff:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
47 :assertpkg diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
48 :sys {force} diff -a -C 1 pl_PL.orig.aff pl_PL.aff >pl_PL.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
49 :sys {force} diff -a -C 1 pl_PL.orig.dic pl_PL.dic >>pl_PL.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
50
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
51
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
52 # Check for updated OpenOffice spell files. When there are changes the
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
53 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
54
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
55 check:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
56 :assertpkg unzip diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
57 :fetch pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
58 :mkdir tmp
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
59 :cd tmp
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
60 @try:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
61 @import stat
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
62 :sys $(UNZIP) ../pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
63 :sys {force} diff ../pl_PL.orig.aff pl_PL.aff >d
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
64 @if os.stat('d')[stat.ST_SIZE] > 0:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
65 :copy pl_PL.aff ../pl_PL.new.aff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
66 :sys {force} diff ../pl_PL.orig.dic pl_PL.dic >d
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
67 @if os.stat('d')[stat.ST_SIZE] > 0:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
68 :copy pl_PL.dic ../pl_PL.new.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
69 @finally:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
70 :cd ..
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
71 :delete {r}{f}{q} tmp
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
72 :delete pl_PL.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
73
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
74
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
75 # vim: set sts=4 sw=4 :