comparison runtime/spell/sv/main.aap @ 2308:cb025511f6b6 vim73

Minor runtime file updates.
author Bram Moolenaar <bram@vim.org>
date Mon, 12 Jul 2010 23:05:41 +0200
parents ea3c3f13385c
children 9272cc83214f
comparison
equal deleted inserted replaced
2307:81527f127fb1 2308:cb025511f6b6
25 :copy $source $target 25 :copy $source $target
26 26
27 # 27 #
28 # Fetching the files from OpenOffice.org. 28 # Fetching the files from OpenOffice.org.
29 # 29 #
30 OODIR = http://extensions.services.openoffice.org/e-files/1080/6 30 OODIR = http://extensions.services.openoffice.org/e-files/1080/7
31 :attr {fetch = $OODIR/%file%} ooo_swedish_dict_1.42.oxt 31 :attr {fetch = $OODIR/%file%} ooo_swedish_dict_1.43.oxt
32 32
33 # The files don't depend on the .zip file so that we can delete it. 33 # 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. 34 # Only download the zip file if the targets don't exist.
35 sv_SE.aff sv_SE.dic: {buildcheck=} 35 sv_SE.aff sv_SE.dic: {buildcheck=}
36 :assertpkg unzip patch 36 :assertpkg unzip patch
37 :fetch ooo_swedish_dict_1.42.oxt 37 :fetch ooo_swedish_dict_1.43.oxt
38 :sys $UNZIP ooo_swedish_dict_1.42.oxt 38 :sys $UNZIP ooo_swedish_dict_1.43.oxt
39 :delete ooo_swedish_dict_1.42.oxt 39 :delete ooo_swedish_dict_1.43.oxt
40 :delete {r} META-INF 40 :delete {r} META-INF
41 :copy dictionaries/sv_SE.aff sv_SE.aff 41 :copy dictionaries/sv_SE.aff sv_SE.aff
42 :copy dictionaries/sv_SE.dic sv_SE.dic 42 :copy dictionaries/sv_SE.dic sv_SE.dic
43 :delete {r} dictionaries dictionaries.xcu description.xml 43 :delete {r} dictionaries dictionaries.xcu description.xml
44 @if not os.path.exists('sv_SE.orig.aff'): 44 @if not os.path.exists('sv_SE.orig.aff'):
61 # Check for updated OpenOffice spell files. When there are changes the 61 # Check for updated OpenOffice spell files. When there are changes the
62 # ".new.aff" and ".new.dic" files are left behind for manual inspection. 62 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
63 63
64 check: 64 check:
65 :assertpkg unzip diff 65 :assertpkg unzip diff
66 :fetch ooo_swedish_dict_1.42.oxt 66 :fetch ooo_swedish_dict_1.43.oxt
67 :mkdir tmp 67 :mkdir tmp
68 :cd tmp 68 :cd tmp
69 @try: 69 @try:
70 @import stat 70 @import stat
71 :sys $UNZIP ../ooo_swedish_dict_1.42.oxt 71 :sys $UNZIP ../ooo_swedish_dict_1.43.oxt
72 :sys {force} diff ../sv_SE.orig.aff sv_SE.aff >d 72 :sys {force} diff ../sv_SE.orig.aff sv_SE.aff >d
73 @if os.stat('d')[stat.ST_SIZE] > 0: 73 @if os.stat('d')[stat.ST_SIZE] > 0:
74 :copy sv_SE.aff ../sv_SE.new.aff 74 :copy sv_SE.aff ../sv_SE.new.aff
75 :sys {force} diff ../sv_SE.orig.dic sv_SE.dic >d 75 :sys {force} diff ../sv_SE.orig.dic sv_SE.dic >d
76 @if os.stat('d')[stat.ST_SIZE] > 0: 76 @if os.stat('d')[stat.ST_SIZE] > 0:
77 :copy sv_SE.dic ../sv_SE.new.dic 77 :copy sv_SE.dic ../sv_SE.new.dic
78 @finally: 78 @finally:
79 :cd .. 79 :cd ..
80 :delete {r}{f}{q} tmp 80 :delete {r}{f}{q} tmp
81 :delete ooo_swedish_dict_1.42.oxt 81 :delete ooo_swedish_dict_1.43.oxt
82 82
83 83
84 # vim: set sts=4 sw=4 : 84 # vim: set sts=4 sw=4 :