Minor runtime file updates.
This commit is contained in:
@ -27,16 +27,16 @@ $SPELLDIR/sv.utf-8.spl : $FILES
|
||||
#
|
||||
# Fetching the files from OpenOffice.org.
|
||||
#
|
||||
OODIR = http://extensions.services.openoffice.org/e-files/1080/6
|
||||
:attr {fetch = $OODIR/%file%} ooo_swedish_dict_1.42.oxt
|
||||
OODIR = http://extensions.services.openoffice.org/e-files/1080/7
|
||||
:attr {fetch = $OODIR/%file%} ooo_swedish_dict_1.43.oxt
|
||||
|
||||
# The files don't depend on the .zip file so that we can delete it.
|
||||
# Only download the zip file if the targets don't exist.
|
||||
sv_SE.aff sv_SE.dic: {buildcheck=}
|
||||
:assertpkg unzip patch
|
||||
:fetch ooo_swedish_dict_1.42.oxt
|
||||
:sys $UNZIP ooo_swedish_dict_1.42.oxt
|
||||
:delete ooo_swedish_dict_1.42.oxt
|
||||
:fetch ooo_swedish_dict_1.43.oxt
|
||||
:sys $UNZIP ooo_swedish_dict_1.43.oxt
|
||||
:delete ooo_swedish_dict_1.43.oxt
|
||||
:delete {r} META-INF
|
||||
:copy dictionaries/sv_SE.aff sv_SE.aff
|
||||
:copy dictionaries/sv_SE.dic sv_SE.dic
|
||||
@ -63,12 +63,12 @@ diff:
|
||||
|
||||
check:
|
||||
:assertpkg unzip diff
|
||||
:fetch ooo_swedish_dict_1.42.oxt
|
||||
:fetch ooo_swedish_dict_1.43.oxt
|
||||
:mkdir tmp
|
||||
:cd tmp
|
||||
@try:
|
||||
@import stat
|
||||
:sys $UNZIP ../ooo_swedish_dict_1.42.oxt
|
||||
:sys $UNZIP ../ooo_swedish_dict_1.43.oxt
|
||||
:sys {force} diff ../sv_SE.orig.aff sv_SE.aff >d
|
||||
@if os.stat('d')[stat.ST_SIZE] > 0:
|
||||
:copy sv_SE.aff ../sv_SE.new.aff
|
||||
@ -78,7 +78,7 @@ check:
|
||||
@finally:
|
||||
:cd ..
|
||||
:delete {r}{f}{q} tmp
|
||||
:delete ooo_swedish_dict_1.42.oxt
|
||||
:delete ooo_swedish_dict_1.43.oxt
|
||||
|
||||
|
||||
# vim: set sts=4 sw=4 :
|
||||
|
Reference in New Issue
Block a user