comparison runtime/spell/hu/main.aap @ 809:4f1b94b51e99 v7.0b02

updated for version 7.0b02
author vimboss
date Sun, 26 Mar 2006 21:06:50 +0000
parents 6f8b578776ab
children 45fad0f590d0
comparison
equal deleted inserted replaced
808:111e109dad13 809:4f1b94b51e99
19 :sys env LANG=hu_HU.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/hu hu_HU" -c q 19 :sys env LANG=hu_HU.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/hu hu_HU" -c q
20 20
21 $SPELLDIR/hu.cp1250.spl : $FILES 21 $SPELLDIR/hu.cp1250.spl : $FILES
22 :sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/hu hu_HU" -c q 22 :sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/hu hu_HU" -c q
23 23
24 ../README_hu.txt: README_hu_HU.txt 24 ../README_hu.txt: $FILES
25 :copy $source $target 25 :sys $VIM -u NONE -e hu_HU.aff -c "1,/# ---/w! $target" -c q
26 26
27 # 27 #
28 # Fetching the files from OpenOffice.org. 28 # Fetch the zip file from SourceForge. Version specific name...
29 # 29 #
30 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries 30 OODIR = http://hunspell.sourceforge.net
31 :attr {fetch = $OODIR/%file%} hu_HU.zip 31 zipname = hu_HU2.zip
32 :attr {fetch = $OODIR/%file%} $zipname
32 33
33 # The files don't depend on the .zip file so that we can delete it. 34 # The files don't depend on the .zip file so that we can delete it.
34 # Only download the zip file if the targets don't exist. 35 # Only download the zip file if the targets don't exist.
35 # This is a bit tricky, since the file name includes the date. 36 # This is a bit tricky, since the file name includes the date.
36 hu_HU.aff hu_HU.dic: {buildcheck=} 37 hu_HU.aff hu_HU.dic: {buildcheck=}
37 :assertpkg unzip patch 38 :assertpkg unzip patch
38 :fetch hu_HU.zip 39 :fetch $zipname
39 :sys $UNZIP hu_HU.zip 40 :sys $UNZIP $zipname
40 :delete hu_HU.zip 41 :delete $zipname
42
43 # Unfortunately the version number is in the file name...
44 :move hu_HU2.dic hu_HU.dic
45 :move hu_HU2.aff hu_HU.aff
46 :delete hu_HU2.history
47
41 @if not os.path.exists('hu_HU.orig.aff'): 48 @if not os.path.exists('hu_HU.orig.aff'):
42 :copy hu_HU.aff hu_HU.orig.aff 49 :copy hu_HU.aff hu_HU.orig.aff
43 @if not os.path.exists('hu_HU.orig.dic'): 50 @if not os.path.exists('hu_HU.orig.dic'):
44 :copy hu_HU.dic hu_HU.orig.dic 51 :copy hu_HU.dic hu_HU.orig.dic
45 @if os.path.exists('hu_HU.diff'): 52 @if os.path.exists('hu_HU.diff'):
53 :assertpkg diff 60 :assertpkg diff
54 :sys {force} diff -a -C 1 hu_HU.orig.aff hu_HU.aff >hu_HU.diff 61 :sys {force} diff -a -C 1 hu_HU.orig.aff hu_HU.aff >hu_HU.diff
55 :sys {force} diff -a -C 1 hu_HU.orig.dic hu_HU.dic >>hu_HU.diff 62 :sys {force} diff -a -C 1 hu_HU.orig.dic hu_HU.dic >>hu_HU.diff
56 63
57 64
58 # Check for updated OpenOffice spell files. When there are changes the
59 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
60
61 check:
62 :assertpkg unzip diff
63 :fetch hu_HU.zip
64 :mkdir tmp
65 :cd tmp
66 @try:
67 @import stat
68 :sys $UNZIP ../hu_HU.zip
69 :sys {force} diff ../hu_HU.orig.aff hu_HU.aff >d
70 @if os.stat('d')[stat.ST_SIZE] > 0:
71 :copy hu_HU.aff ../hu_HU.new.aff
72 :sys {force} diff ../hu_HU.orig.dic hu_HU.dic >d
73 @if os.stat('d')[stat.ST_SIZE] > 0:
74 :copy hu_HU.dic ../hu_HU.new.dic
75 @finally:
76 :cd ..
77 :delete {r}{f}{q} tmp
78 :delete hu_HU.zip
79
80 65
81 # vim: set sts=4 sw=4 : 66 # vim: set sts=4 sw=4 :