diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-09-01 20:46:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-09-01 20:46:49 +0000 |
commit | e344bead3ecc16a0982d157e8c19050f6dff4e0c (patch) | |
tree | 34da48120172b9e2efc8c559733c2b69db5a24ba /runtime/spell | |
parent | da2303d96b0f55d30e9b5b57d3459d5e1ea22ec2 (diff) |
updated for version 7.0140v7.0140
Diffstat (limited to 'runtime/spell')
57 files changed, 2359 insertions, 25 deletions
diff --git a/runtime/spell/cy/cy_GB.diff b/runtime/spell/cy/cy_GB.diff new file mode 100644 index 0000000000..511e7188b6 --- /dev/null +++ b/runtime/spell/cy/cy_GB.diff @@ -0,0 +1,9 @@ +*** cy_GB.orig.aff Wed Aug 31 21:42:03 2005 +--- cy_GB.aff Wed Aug 31 21:43:10 2005 +*************** +*** 81,82 **** +--- 81,84 ---- + ++ MIDWORD '- ++ + PFX M Y 18 diff --git a/runtime/spell/cy/main.aap b/runtime/spell/cy/main.aap new file mode 100644 index 0000000000..ce6cb840f8 --- /dev/null +++ b/runtime/spell/cy/main.aap @@ -0,0 +1,82 @@ +# Aap recipe for Welsh Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = cy_GB.aff cy_GB.dic + +all: $SPELLDIR/cy.iso-8859-14.spl $SPELLDIR/cy.utf-8.spl \ + ../README_cy.txt + +$SPELLDIR/cy.iso-8859-14.spl : $FILES + :sys $VIM -u NONE -e -c "set enc=iso-8859-14" + -c "mkspell! $SPELLDIR/cy cy_GB" -c q + +$SPELLDIR/cy.utf-8.spl : $FILES + :sys $VIM -u NONE -e -c "set enc=utf-8" + -c "mkspell! $SPELLDIR/cy cy_GB" -c q + +../README_cy.txt : README_cy_GB.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%} cy_GB.zip + +# 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. +cy_GB.aff cy_GB.dic: {buildcheck=} + :assertpkg unzip patch + :fetch cy_GB.zip + :sys $UNZIP cy_GB.zip + :delete cy_GB.zip + :sys $VIM cy_GB.aff -e -c "set ff=unix" -c update -c q + :sys $VIM cy_GB.dic -e -c "set ff=unix" -c update -c q + :sys $VIM README_cy_GB.txt -e -c "set ff=unix" -c update -c q + @if not os.path.exists('cy_GB.orig.aff'): + :copy cy_GB.aff cy_GB.orig.aff + @if not os.path.exists('cy_GB.orig.dic'): + :copy cy_GB.dic cy_GB.orig.dic + @if os.path.exists('cy_GB.diff'): + :sys patch <cy_GB.diff + + +# Generate diff files, so that others can get the OpenOffice files and apply +# the diffs to get the Vim versions. + +diff: + :assertpkg diff + :sys {force} diff -a -C 1 cy_GB.orig.aff cy_GB.aff >cy_GB.diff + :sys {force} diff -a -C 1 cy_GB.orig.dic cy_GB.dic >>cy_GB.diff + + +# Check for updated OpenOffice spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :assertpkg unzip diff + :fetch cy_GB.zip + :mkdir tmp + :cd tmp + @try: + @import stat + :sys $UNZIP ../cy_GB.zip + :sys {force} diff ../cy_GB.orig.aff cy_GB.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy cy_GB.aff ../cy_GB.new.aff + :sys {force} diff ../cy_GB.orig.dic cy_GB.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy cy_GB.dic ../cy_GB.new.dic + @finally: + :cd .. + :delete {r}{f}{q} tmp + :delete cy_GB.zip + + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/da/main.aap b/runtime/spell/da/main.aap index b84a80f932..65e1a2f7d4 100644 --- a/runtime/spell/da/main.aap +++ b/runtime/spell/da/main.aap @@ -35,6 +35,7 @@ da_DK.aff da_DK.dic: {buildcheck=} :fetch da_DK.zip :sys $UNZIP da_DK.zip :delete da_DK.zip + :delete contributors COPYING Makefile da_DK.excluded @if not os.path.exists('da_DK.orig.aff'): :copy da_DK.aff da_DK.orig.aff @if not os.path.exists('da_DK.orig.dic'): diff --git a/runtime/spell/en.ascii.spl b/runtime/spell/en.ascii.spl Binary files differindex 360e1ae9ce..0bbe6998f0 100644 --- a/runtime/spell/en.ascii.spl +++ b/runtime/spell/en.ascii.spl diff --git a/runtime/spell/en.latin1.spl b/runtime/spell/en.latin1.spl Binary files differindex 03820d56fc..4d6f5ae62a 100644 --- a/runtime/spell/en.latin1.spl +++ b/runtime/spell/en.latin1.spl diff --git a/runtime/spell/en.utf-8.spl b/runtime/spell/en.utf-8.spl Binary files differindex 1013907ee4..d630a76637 100644 --- a/runtime/spell/en.utf-8.spl +++ b/runtime/spell/en.utf-8.spl diff --git a/runtime/spell/fo/main.aap b/runtime/spell/fo/main.aap index 948d4a472d..b9be542cf1 100644 --- a/runtime/spell/fo/main.aap +++ b/runtime/spell/fo/main.aap @@ -35,6 +35,7 @@ fo_FO.aff fo_FO.dic: {buildcheck=} :fetch fo_FO.zip :sys $UNZIP fo_FO.zip :delete fo_FO.zip + :delete contributors fo_FO.excluded Makefile COPYING @if not os.path.exists('fo_FO.orig.aff'): :copy fo_FO.aff fo_FO.orig.aff @if not os.path.exists('fo_FO.orig.dic'): diff --git a/runtime/spell/fr/main.aap b/runtime/spell/fr/main.aap index e7424326d5..1b70b83d78 100644 --- a/runtime/spell/fr/main.aap +++ b/runtime/spell/fr/main.aap @@ -19,8 +19,8 @@ $SPELLDIR/fr.utf-8.spl : $FILES :sys env LANG=fr_FR.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/fr fr_FR" -c q -../README_fr.txt : README_fr_FR.txt - :copy $source $target +../README_fr.txt : README_fr_FR.txt lisez-moi.txt + :cat $source >!$target # # Fetching the files from OpenOffice.org. diff --git a/runtime/spell/ga/ga_IE.diff b/runtime/spell/ga/ga_IE.diff new file mode 100644 index 0000000000..9b72853dce --- /dev/null +++ b/runtime/spell/ga/ga_IE.diff @@ -0,0 +1,27 @@ +*** ga_IE.orig.aff Wed Aug 31 16:48:49 2005 +--- ga_IE.aff Wed Aug 31 16:49:43 2005 +*************** +*** 37,38 **** +--- 37,58 ---- + ++ FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ ++ LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ ++ UPP ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ ++ ++ SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ¿ ++ SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep? ++ ++ MIDWORD '- ++ ++ MAP 9 ++ MAP aàáâãäå ++ MAP eèéêë ++ MAP iìíîï ++ MAP oòóôõö ++ MAP uùúûü ++ MAP nñ ++ MAP cç ++ MAP yÿý ++ MAP sß ++ + PFX S Y 18 diff --git a/runtime/spell/ga/main.aap b/runtime/spell/ga/main.aap new file mode 100644 index 0000000000..d745de5f4d --- /dev/null +++ b/runtime/spell/ga/main.aap @@ -0,0 +1,79 @@ +# Aap recipe for Irish Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = ga_IE.aff ga_IE.dic + +all: $SPELLDIR/ga.latin1.spl $SPELLDIR/ga.utf-8.spl ../README_ga.txt + +# I don't have an Irish locale, use the Dutch one instead. +$SPELLDIR/ga.latin1.spl : $FILES + :sys env LANG=nl_NL.ISO8859-1 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/ga ga_IE" -c q + +$SPELLDIR/ga.utf-8.spl : $FILES + :sys env LANG=nl_NL.UTF-8 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/ga ga_IE" -c q + +../README_ga.txt : README_ga_IE.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%} ga_IE.zip + +# 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. +ga_IE.aff ga_IE.dic: {buildcheck=} + :assertpkg unzip patch + :fetch ga_IE.zip + :sys $UNZIP ga_IE.zip + :delete ga_IE.zip + @if not os.path.exists('ga_IE.orig.aff'): + :copy ga_IE.aff ga_IE.orig.aff + @if not os.path.exists('ga_IE.orig.dic'): + :copy ga_IE.dic ga_IE.orig.dic + @if os.path.exists('ga_IE.diff'): + :sys patch <ga_IE.diff + + +# Generate diff files, so that others can get the OpenOffice files and apply +# the diffs to get the Vim versions. + +diff: + :assertpkg diff + :sys {force} diff -a -C 1 ga_IE.orig.aff ga_IE.aff >ga_IE.diff + :sys {force} diff -a -C 1 ga_IE.orig.dic ga_IE.dic >>ga_IE.diff + + +# Check for updated OpenOffice spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :assertpkg unzip diff + :fetch ga_IE.zip + :mkdir tmp + :cd tmp + @try: + @import stat + :sys $UNZIP ../ga_IE.zip + :sys {force} diff ../ga_IE.orig.aff ga_IE.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy ga_IE.aff ../ga_IE.new.aff + :sys {force} diff ../ga_IE.orig.dic ga_IE.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy ga_IE.dic ../ga_IE.new.dic + @finally: + :cd .. + :delete {r}{f}{q} tmp + :delete ga_IE.zip + + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/gd/gd_GB.diff b/runtime/spell/gd/gd_GB.diff new file mode 100644 index 0000000000..616bae7241 --- /dev/null +++ b/runtime/spell/gd/gd_GB.diff @@ -0,0 +1,26 @@ +*** gd_GB.orig.aff Wed Aug 31 20:50:02 2005 +--- gd_GB.aff Wed Aug 31 20:50:43 2005 +*************** +*** 19 **** +--- 19,39 ---- + TRY ahinrdesclgoutmbàf-òACìTùBpGSDMèIRPLNEFéO'UóÀÒÌÙHÉÈ ++ ++ FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ ++ LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ ++ UPP ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ ++ ++ SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ¿ ++ SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep? ++ ++ MIDWORD '- ++ ++ MAP 9 ++ MAP aàáâãäå ++ MAP eèéêë ++ MAP iìíîï ++ MAP oòóôõö ++ MAP uùúûü ++ MAP nñ ++ MAP cç ++ MAP yÿý ++ MAP sß diff --git a/runtime/spell/gd/main.aap b/runtime/spell/gd/main.aap new file mode 100644 index 0000000000..8992f032c0 --- /dev/null +++ b/runtime/spell/gd/main.aap @@ -0,0 +1,78 @@ +# Aap recipe for Scottish Gaelic Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = gd_GB.aff gd_GB.dic + +all: $SPELLDIR/gd.latin1.spl $SPELLDIR/gd.utf-8.spl ../README_gd.txt + +$SPELLDIR/gd.latin1.spl : $FILES + :sys env LANG=gd_GB.ISO8859-1 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/gd gd_GB" -c q + +$SPELLDIR/gd.utf-8.spl : $FILES + :sys env LANG=gd_GB.UTF-8 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/gd gd_GB" -c q + +../README_gd.txt : README_gd_GB.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%} gd_GB.zip + +# 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. +gd_GB.aff gd_GB.dic: {buildcheck=} + :assertpkg unzip patch + :fetch gd_GB.zip + :sys $UNZIP gd_GB.zip + :delete gd_GB.zip + @if not os.path.exists('gd_GB.orig.aff'): + :copy gd_GB.aff gd_GB.orig.aff + @if not os.path.exists('gd_GB.orig.dic'): + :copy gd_GB.dic gd_GB.orig.dic + @if os.path.exists('gd_GB.diff'): + :sys patch <gd_GB.diff + + +# Generate diff files, so that others can get the OpenOffice files and apply +# the diffs to get the Vim versions. + +diff: + :assertpkg diff + :sys {force} diff -a -C 1 gd_GB.orig.aff gd_GB.aff >gd_GB.diff + :sys {force} diff -a -C 1 gd_GB.orig.dic gd_GB.dic >>gd_GB.diff + + +# Check for updated OpenOffice spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :assertpkg unzip diff + :fetch gd_GB.zip + :mkdir tmp + :cd tmp + @try: + @import stat + :sys $UNZIP ../gd_GB.zip + :sys {force} diff ../gd_GB.orig.aff gd_GB.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy gd_GB.aff ../gd_GB.new.aff + :sys {force} diff ../gd_GB.orig.dic gd_GB.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy gd_GB.dic ../gd_GB.new.dic + @finally: + :cd .. + :delete {r}{f}{q} tmp + :delete gd_GB.zip + + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/hr/main.aap b/runtime/spell/hr/main.aap index 699d61fe75..1b998ca0e9 100644 --- a/runtime/spell/hr/main.aap +++ b/runtime/spell/hr/main.aap @@ -9,8 +9,8 @@ SPELLDIR = .. FILES = hr_HR.aff hr_HR.dic -all: $SPELLDIR/hr.iso-8859-2.spl $SPELLDIR/pl.utf-8.spl \ - $SPELLDIR/hr.cp1250.spl ../README_pl.txt +all: $SPELLDIR/hr.iso-8859-2.spl $SPELLDIR/hr.utf-8.spl \ + $SPELLDIR/hr.cp1250.spl ../README_hr.txt $SPELLDIR/hr.iso-8859-2.spl : $FILES :sys env LANG=hr_HR.ISO8859-2 $VIM -u NONE -e -c "mkspell! $SPELLDIR/hr hr_HR" -c q diff --git a/runtime/spell/id/id_ID.diff b/runtime/spell/id/id_ID.diff new file mode 100644 index 0000000000..d0273ae6dd --- /dev/null +++ b/runtime/spell/id/id_ID.diff @@ -0,0 +1,22 @@ +*** id_ID.orig.aff Wed Aug 31 16:41:11 2005 +--- id_ID.aff Wed Aug 31 16:43:29 2005 +*************** +*** 18,19 **** +--- 18,26 ---- + ++ FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ ++ LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ ++ UPP ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ ++ ++ SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ¿ ++ SOFOTO ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep? ++ + PFX A Y 1 +*** id_ID.orig.dic Wed Aug 31 16:41:11 2005 +--- id_ID.dic Wed Aug 31 16:41:35 2005 +*************** +*** 21729,21731 **** + berabarkan +- buletin + kernu +--- 21729,21730 ---- diff --git a/runtime/spell/id/main.aap b/runtime/spell/id/main.aap new file mode 100644 index 0000000000..8c04b55415 --- /dev/null +++ b/runtime/spell/id/main.aap @@ -0,0 +1,79 @@ +# Aap recipe for Indonesian Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = id_ID.aff id_ID.dic + +all: $SPELLDIR/id.latin1.spl $SPELLDIR/id.utf-8.spl ../README_id.txt + +# I don't have an Indonesian locale, use the Dutch one instead. +$SPELLDIR/id.latin1.spl : $FILES + :sys env LANG=nl_NL.ISO8859-1 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/id id_ID" -c q + +$SPELLDIR/id.utf-8.spl : $FILES + :sys env LANG=nl_NL.UTF-8 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/id id_ID" -c q + +../README_id.txt : README_id_ID.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%} id_ID.zip + +# 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. +id_ID.aff id_ID.dic: {buildcheck=} + :assertpkg unzip patch + :fetch id_ID.zip + :sys $UNZIP id_ID.zip + :delete id_ID.zip + @if not os.path.exists('id_ID.orig.aff'): + :copy id_ID.aff id_ID.orig.aff + @if not os.path.exists('id_ID.orig.dic'): + :copy id_ID.dic id_ID.orig.dic + @if os.path.exists('id_ID.diff'): + :sys patch <id_ID.diff + + +# Generate diff files, so that others can get the OpenOffice files and apply +# the diffs to get the Vim versions. + +diff: + :assertpkg diff + :sys {force} diff -a -C 1 id_ID.orig.aff id_ID.aff >id_ID.diff + :sys {force} diff -a -C 1 id_ID.orig.dic id_ID.dic >>id_ID.diff + + +# Check for updated OpenOffice spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :assertpkg unzip diff + :fetch id_ID.zip + :mkdir tmp + :cd tmp + @try: + @import stat + :sys $UNZIP ../id_ID.zip + :sys {force} diff ../id_ID.orig.aff id_ID.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy id_ID.aff ../id_ID.new.aff + :sys {force} diff ../id_ID.orig.dic id_ID.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy id_ID.dic ../id_ID.new.dic + @finally: + :cd .. + :delete {r}{f}{q} tmp + :delete id_ID.zip + + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/it/main.aap b/runtime/spell/it/main.aap index eaced68027..f1bd742905 100644 --- a/runtime/spell/it/main.aap +++ b/runtime/spell/it/main.aap @@ -19,8 +19,8 @@ $SPELLDIR/it.utf-8.spl : $FILES :sys env LANG=it_IT.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/it it_IT" -c q -../README_it.txt : README_it_IT.txt - :copy $source $target +../README_it.txt : README_it_IT.txt README.txt + :cat $source >! $target # # Fetching the files from OpenOffice.org. @@ -35,6 +35,7 @@ it_IT.aff it_IT.dic: {buildcheck=} :fetch it_IT.zip :sys $UNZIP it_IT.zip :delete it_IT.zip + :delete GPL.txt history.txt license.txt notes.txt statistiche.sxc thanks.txt @if not os.path.exists('it_IT.orig.aff'): :copy it_IT.aff it_IT.orig.aff @if not os.path.exists('it_IT.orig.dic'): diff --git a/runtime/spell/ku/ku_TR.diff b/runtime/spell/ku/ku_TR.diff new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/runtime/spell/ku/ku_TR.diff diff --git a/runtime/spell/ku/main.aap b/runtime/spell/ku/main.aap new file mode 100644 index 0000000000..200fb2f1e3 --- /dev/null +++ b/runtime/spell/ku/main.aap @@ -0,0 +1,82 @@ +# Aap recipe for Kurdish Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = ku_TR.aff ku_TR.dic + +# I don't have a Kurdish locale, us the Turkish one. +all: $SPELLDIR/ku.iso-8859-9.spl $SPELLDIR/ku.utf-8.spl \ + ../README_ku.txt + +$SPELLDIR/ku.iso-8859-9.spl : $FILES + :sys env LANG=tr_TR.ISO8859-9 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ku ku_TR" -c q + +$SPELLDIR/ku.utf-8.spl : $FILES + :sys env LANG=tr_TR.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ku ku_TR" -c q + +../README_ku.txt: README_ku_TR.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%} ku_TR.zip + +# 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. +# This is a bit tricky, since the file name includes the date. +ku_TR.aff ku_TR.dic: {buildcheck=} + :assertpkg unzip patch + :fetch ku_TR.zip + :sys $UNZIP ku_TR.zip + :delete ku_TR.zip + :sys $VIM ku_TR.aff -e -c "set ff=unix" -c update -c q + :sys $VIM ku_TR.dic -e -c "set ff=unix" -c update -c q + :sys $VIM README_ku_TR.txt -e -c "set ff=unix" -c update -c q + @if not os.path.exists('ku_TR.orig.aff'): + :copy ku_TR.aff ku_TR.orig.aff + @if not os.path.exists('ku_TR.orig.dic'): + :copy ku_TR.dic ku_TR.orig.dic + @if os.path.exists('ku_TR.diff'): + :sys patch <ku_TR.diff + + +# Generate diff files, so that others can get the OpenOffice files and apply +# the diffs to get the Vim versions. + +diff: + :assertpkg diff + :sys {force} diff -a -C 1 ku_TR.orig.aff ku_TR.aff >ku_TR.diff + :sys {force} diff -a -C 1 ku_TR.orig.dic ku_TR.dic >>ku_TR.diff + + +# Check for updated spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :assertpkg unzip diff + :fetch ku_TR.zip + :mkdir tmp + :cd tmp + @try: + |