diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-07 21:07:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-07 21:07:18 +0200 |
commit | acc224064033e5cea21ef7f1eefb356ca06ff11d (patch) | |
tree | bb447a8591e335b0bec96a43a7c8fa5774d741df /runtime/spell | |
parent | df44a27b53586fccfc6a3aedc89061fdd9a515ff (diff) |
Update runtime files
Diffstat (limited to 'runtime/spell')
-rw-r--r-- | runtime/spell/eu/main.aap | 81 | ||||
-rw-r--r-- | runtime/spell/main.aap | 9 |
2 files changed, 89 insertions, 1 deletions
diff --git a/runtime/spell/eu/main.aap b/runtime/spell/eu/main.aap new file mode 100644 index 0000000000..a31310de8c --- /dev/null +++ b/runtime/spell/eu/main.aap @@ -0,0 +1,81 @@ +# Aap recipe for Basque Vim spell files. +# +# NOTE: This takes a VERY long time: several hours on a modern PC, more than +# a day on older systems. + +# Select the amount of memory that can be used. +# Default. +#SETTING = 'set mkspellmem=460000,2000,500' + +# For about 1 Tbyte of RAM. +#SETTING = 'set mkspellmem=900000,4000,1000' + +# For about 2 Tbyte of RAM. +#SETTING = 'set mkspellmem=1900000,8000,2000' + +# For about 4 Tbyte of RAM. +#SETTING = 'set mkspellmem=3900000,16000,4000' + +# For about 8 Tbyte of RAM. +SETTING = 'set mkspellmem=7900000,30000,8000' + + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = eu_ES.aff eu_ES.dic + +all: $SPELLDIR/eu.utf-8.spl ../README_eu.txt + +$SPELLDIR/eu.utf-8.spl : $FILES + :sys env LANG=eu_ES.UTF-8 + $VIM -u NONE -e -c $SETTING -c "mkspell! $SPELLDIR/eu eu_ES" -c q + +# +# Fetching the files. +# URL suggested by Zuhaitz Beloki Leiza. +# +:attr {fetch = http://xuxen.eus/static/hunspell/xuxen_5.1_hunspell.tar.gz} xuxen_5.1_hunspell.tar.gz + +# The files don't depend on the tar file so that we can delete it. +# Only download the tar file if the targets don't exist. +eu_ES.aff eu_ES.dic: {buildcheck=} + :assertpkg tar + :fetch xuxen_5.1_hunspell.tar.gz + :sys tar xf xuxen_5.1_hunspell.tar.gz + :update cleanunused + @if not os.path.exists('eu_ES.orig.aff'): + :copy eu_ES.aff eu_ES.orig.aff + @if not os.path.exists('eu_ES.orig.dic'): + :copy eu_ES.dic eu_ES.orig.dic + @if os.path.exists('eu_ES.diff'): + :sys patch <eu_ES.diff + +../README_eu.txt : LICENSE.txt + :cat $source >! $target + +# Delete all the files unpacked from the archive +clean: cleanunused + :delete {f} eu_ES.dic + :delete {f} eu_ES.aff + +# Delete all the files from the archive that are not used, including the +# archive itself. +cleanunused: + :delete {f} xuxen_5.1_hunspell.tar.gz + +# Generate diff files, so that others can get the files and apply +# the diffs to get the Vim versions. + +diff: + :assertpkg diff + :sys {force} diff -a -C 1 eu_ES.orig.aff eu_ES.aff >eu_ES.diff + :sys {force} diff -a -C 1 eu_ES.orig.dic eu_ES.dic >>eu_ES.diff + + + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/main.aap b/runtime/spell/main.aap index 410b5f365c..c6050a4ee5 100644 --- a/runtime/spell/main.aap +++ b/runtime/spell/main.aap @@ -5,9 +5,10 @@ # aap diff create all the diff files # "hu" is at the end, because it takes a very long time. +# "eu" takes even longer (4 hours on my system). LANG = af am bg br ca cs cy da de el en eo es fr fo ga gd gl he hr id it ku la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk sl sv sw - tet th tl tn tr uk yi zu hu + tet th tl tn tr uk yi zu hu eu # TODO: # Finnish doesn't work, the dictionary fi_FI.zip file contains hyphenation... @@ -15,6 +16,12 @@ LANG = af am bg br ca cs cy da de el en eo es fr fo ga gd gl he hr id it diff: $*LANG/diff :print Done. +# Use "aap publish" to upload the .spl files. +SPL_files = eu.utf-8.spl + +UPDIR = rsync://bram@ftp1.nluug.nl//var/ftp/pub/vim/runtime/spell +:attr {publish = $UPDIR/%file%} $SPL_files + @for l in string.split(_no.LANG): :child $l/main.aap |