Mercurial > vim
comparison runtime/spell/fr/main.aap @ 481:66080ac5dab7 v7.0130
updated for version 7.0130
author | vimboss |
---|---|
date | Mon, 15 Aug 2005 21:41:48 +0000 |
parents | 3bfa9235f9c8 |
children | 6f8b578776ab |
comparison
equal
deleted
inserted
replaced
480:bf5ba8a0cdee | 481:66080ac5dab7 |
---|---|
7 :progsearch VIM vim | 7 :progsearch VIM vim |
8 | 8 |
9 SPELLDIR = .. | 9 SPELLDIR = .. |
10 FILES = fr_FR.aff fr_FR.dic | 10 FILES = fr_FR.aff fr_FR.dic |
11 | 11 |
12 all: $(SPELLDIR)/fr.latin1.spl $(SPELLDIR)/fr.utf-8.spl ../README_fr.txt | 12 all: $SPELLDIR/fr.latin1.spl $SPELLDIR/fr.utf-8.spl ../README_fr.txt |
13 | 13 |
14 $(SPELLDIR)/fr.latin1.spl : $(VIM) $(FILES) | 14 $SPELLDIR/fr.latin1.spl : $VIM $FILES |
15 :sys env LANG=fr_FR.ISO8859-1 | 15 :sys env LANG=fr_FR.ISO8859-1 |
16 $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/fr fr_FR" -c q | 16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/fr fr_FR" -c q |
17 | 17 |
18 $(SPELLDIR)/fr.utf-8.spl : $(VIM) $(FILES) | 18 $SPELLDIR/fr.utf-8.spl : $VIM $FILES |
19 :sys env LANG=fr_FR.UTF-8 | 19 :sys env LANG=fr_FR.UTF-8 |
20 $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/fr fr_FR" -c q | 20 $VIM -u NONE -e -c "mkspell! $SPELLDIR/fr fr_FR" -c q |
21 | 21 |
22 ../README_fr.txt : README_fr_FR.txt | 22 ../README_fr.txt : README_fr_FR.txt |
23 :copy $source $target | 23 :copy $source $target |
24 | 24 |
25 # | 25 # |
26 # Fetching the files from OpenOffice.org. | 26 # Fetching the files from OpenOffice.org. |
27 # | 27 # |
28 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries | 28 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries |
29 :attr {fetch = $(OODIR)/%file%} fr_FR.zip | 29 :attr {fetch = $OODIR/%file%} fr_FR.zip |
30 | 30 |
31 # The files don't depend on the .zip file so that we can delete it. | 31 # The files don't depend on the .zip file so that we can delete it. |
32 # Only download the zip file if the targets don't exist. | 32 # Only download the zip file if the targets don't exist. |
33 fr_FR.aff fr_FR.dic: {buildcheck=} | 33 fr_FR.aff fr_FR.dic: {buildcheck=} |
34 :assertpkg unzip patch | 34 :assertpkg unzip patch |
35 :fetch fr_FR.zip | 35 :fetch fr_FR.zip |
36 :sys $(UNZIP) fr_FR.zip | 36 :sys $UNZIP fr_FR.zip |
37 :delete fr_FR.zip | 37 :delete fr_FR.zip |
38 @if not os.path.exists('fr_FR.orig.aff'): | 38 @if not os.path.exists('fr_FR.orig.aff'): |
39 :copy fr_FR.aff fr_FR.orig.aff | 39 :copy fr_FR.aff fr_FR.orig.aff |
40 @if not os.path.exists('fr_FR.orig.dic'): | 40 @if not os.path.exists('fr_FR.orig.dic'): |
41 :copy fr_FR.dic fr_FR.orig.dic | 41 :copy fr_FR.dic fr_FR.orig.dic |
42 @if os.path.exists('fr_FR.diff'): | 42 @if os.path.exists('fr_FR.diff'): |
43 :sys patch <fr_FR.diff | 43 :sys patch <fr_FR.diff |
44 | 44 |
45 | 45 |
46 # Generate diff files, so that others can get the OpenOffice files and apply | 46 # Generate diff files, so that others can get the OpenOffice files and apply |
60 :fetch fr_FR.zip | 60 :fetch fr_FR.zip |
61 :mkdir tmp | 61 :mkdir tmp |
62 :cd tmp | 62 :cd tmp |
63 @try: | 63 @try: |
64 @import stat | 64 @import stat |
65 :sys $(UNZIP) ../fr_FR.zip | 65 :sys $UNZIP ../fr_FR.zip |
66 :sys {force} diff ../fr_FR.orig.aff fr_FR.aff >d | 66 :sys {force} diff ../fr_FR.orig.aff fr_FR.aff >d |
67 @if os.stat('d')[stat.ST_SIZE] > 0: | 67 @if os.stat('d')[stat.ST_SIZE] > 0: |
68 :copy fr_FR.aff ../fr_FR.new.aff | 68 :copy fr_FR.aff ../fr_FR.new.aff |
69 :sys {force} diff ../fr_FR.orig.dic fr_FR.dic >d | 69 :sys {force} diff ../fr_FR.orig.dic fr_FR.dic >d |
70 @if os.stat('d')[stat.ST_SIZE] > 0: | 70 @if os.stat('d')[stat.ST_SIZE] > 0: |