Update spell files for Ubuntu locale names.
diff --git a/runtime/spell/sv/main.aap b/runtime/spell/sv/main.aap
index 5634711..de8696e 100644
--- a/runtime/spell/sv/main.aap
+++ b/runtime/spell/sv/main.aap
@@ -1,6 +1,6 @@
# Aap recipe for Swedish Vim spell files.
#
-# Maintainer: Stefan Karlsson <stefan.74@comhem.se>
+# Maintainer: Mattias Winther <vim@mattias.winthernet.se>
# Use a freshly compiled Vim if it exists.
@if os.path.exists('../../../src/vim'):
@@ -14,30 +14,33 @@
all: $SPELLDIR/sv.latin1.spl $SPELLDIR/sv.utf-8.spl ../README_sv.txt
$SPELLDIR/sv.latin1.spl : $FILES
- :sys env LANG=sv_SE.ISO8859-1
+ :sys env LANG=sv_SE.ISO-8859-1
$VIM -u NONE -e -c "mkspell! $SPELLDIR/sv sv_SE" -c q
$SPELLDIR/sv.utf-8.spl : $FILES
:sys env LANG=sv_SE.UTF-8
$VIM -u NONE -e -c "mkspell! $SPELLDIR/sv sv_SE" -c q
-../README_sv.txt : README_sv_SE.txt
+../README_sv.txt : LICENSE_sv_SE.txt
:copy $source $target
#
# Fetching the files from OpenOffice.org.
#
-OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
-:attr {fetch = $OODIR/%file%} sv_SE.zip
+OODIR = http://extensions.services.openoffice.org/e-files/1080/6
+:attr {fetch = $OODIR/%file%} ooo_swedish_dict_1.42.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 sv_SE.zip
- :sys $UNZIP sv_SE.zip
- :delete sv_SE.zip
- :delete hyph_sv_SE.dic
+ :fetch ooo_swedish_dict_1.42.oxt
+ :sys $UNZIP ooo_swedish_dict_1.42.oxt
+ :delete ooo_swedish_dict_1.42.oxt
+ :delete {r} META-INF
+ :copy dictionaries/sv_SE.aff sv_SE.aff
+ :copy dictionaries/sv_SE.dic sv_SE.dic
+ :delete {r} dictionaries dictionaries.xcu description.xml
@if not os.path.exists('sv_SE.orig.aff'):
:copy sv_SE.aff sv_SE.orig.aff
@if not os.path.exists('sv_SE.orig.dic'):
@@ -60,12 +63,12 @@
check:
:assertpkg unzip diff
- :fetch sv_SE.zip
+ :fetch ooo_swedish_dict_1.42.oxt
:mkdir tmp
:cd tmp
@try:
@import stat
- :sys $UNZIP ../sv_SE.zip
+ :sys $UNZIP ../ooo_swedish_dict_1.42.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
@@ -75,7 +78,7 @@
@finally:
:cd ..
:delete {r}{f}{q} tmp
- :delete sv_SE.zip
+ :delete ooo_swedish_dict_1.42.oxt
# vim: set sts=4 sw=4 :