comparison runtime/spell/br/main.aap @ 7147:c590de398af9

commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 20:34:21 2015 +0200 Update various runtime files.
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Sep 2015 20:45:09 +0200
parents 61bcafd8c648
children
comparison
equal deleted inserted replaced
7146:274adc0c2140 7147:c590de398af9
23 :copy $source $target 23 :copy $source $target
24 24
25 # 25 #
26 # Fetching the files from OpenOffice.org. 26 # Fetching the files from OpenOffice.org.
27 # 27 #
28 OODIR = http://extensions.libreoffice.org/extension-center/an-drouizig-breton-spellchecker/releases/0.11/ 28 OODIR = http://extensions.libreoffice.org/extension-center/an-drouizig-breton-spellchecker/releases/0.13/
29 :attr {fetch = $OODIR/%file%} dict-br-0.11.oxt 29 :attr {fetch = $OODIR/%file%} difazier-an-drouizig-0_13.oxt
30 30
31 # The files don't depend on the .zip file so that we can delete it. 31 # The files don't depend on the .zip file so that we can delete it.
32 # Only download the zip file if the targets don't exist. 32 # Only download the zip file if the targets don't exist.
33 br_FR.aff br_FR.dic: {buildcheck=} 33 br_FR.aff br_FR.dic: {buildcheck=}
34 :assertpkg unzip patch 34 :assertpkg unzip patch
35 :fetch dict-br-0.11.oxt 35 :fetch difazier-an-drouizig-0_13.oxt
36 :sys $UNZIP dict-br-0.11.oxt 36 :sys $UNZIP difazier-an-drouizig-0_13.oxt
37 :delete dict-br-0.11.oxt 37 :delete difazier-an-drouizig-0_13.oxt
38 :copy dictionaries/br_FR.aff br_FR.aff 38 :copy dictionaries/br_FR.aff br_FR.aff
39 :copy dictionaries/br_FR.dic br_FR.dic 39 :copy dictionaries/br_FR.dic br_FR.dic
40 # The br_FR.aff file contains a BOM, remove it. 40 # The br_FR.aff file contains a BOM, remove it.
41 :sys $VIM -u NONE -e -c "set enc=utf-8" 41 :sys $VIM -u NONE -e -c "set enc=utf-8"
42 -c "e br_FR.aff" 42 -c "e br_FR.aff"
63 # Check for updated OpenOffice spell files. When there are changes the 63 # Check for updated OpenOffice spell files. When there are changes the
64 # ".new.aff" and ".new.dic" files are left behind for manual inspection. 64 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
65 65
66 check: 66 check:
67 :assertpkg unzip diff 67 :assertpkg unzip diff
68 :fetch dict-br-0.11.oxt 68 :fetch difazier-an-drouizig-0_13.oxt
69 :mkdir tmp 69 :mkdir tmp
70 :cd tmp 70 :cd tmp
71 @try: 71 @try:
72 @import stat 72 @import stat
73 :sys $UNZIP ../dict-br-0.11.oxt 73 :sys $UNZIP ../difazier-an-drouizig-0_13.oxt
74 :sys {force} diff ../dictionaries/br_FR.aff br_FR.aff >d 74 :sys {force} diff ../dictionaries/br_FR.aff br_FR.aff >d
75 @if os.stat('d')[stat.ST_SIZE] > 0: 75 @if os.stat('d')[stat.ST_SIZE] > 0:
76 :copy br_FR.aff ../br_FR.new.aff 76 :copy br_FR.aff ../br_FR.new.aff
77 :sys {force} diff ../dictionaries/br_FR.dic br_FR.dic >d 77 :sys {force} diff ../dictionaries/br_FR.dic br_FR.dic >d
78 @if os.stat('d')[stat.ST_SIZE] > 0: 78 @if os.stat('d')[stat.ST_SIZE] > 0:
79 :copy br_FR.dic ../br_FR.new.dic 79 :copy br_FR.dic ../br_FR.new.dic
80 @finally: 80 @finally:
81 :cd .. 81 :cd ..
82 :delete {r}{f}{q} tmp 82 :delete {r}{f}{q} tmp
83 :delete dict-br-0.11.oxt 83 :delete difazier-an-drouizig-0_13.oxt
84 84
85 85
86 # vim: set sts=4 sw=4 : 86 # vim: set sts=4 sw=4 :