]> git.donarmstrong.com Git - deb_pkgs/scowl.git/blob - debian/patches/no-zips.diff
refresh patches
[deb_pkgs/scowl.git] / debian / patches / no-zips.diff
1 Description: avoid worldlist*zip and hunspell*zip for hunspell
2  Let's not create worldlist*zip and hunspell*zip for hunspell. We are not going
3  to distribute them or use them in any way. Saves us a zip build-depdency
4  but more importantly it does not create "binary" files in speller/hunspell
5  we would need to manually remove it clean.
6 Author: Rene Engelhard <rene@debian.org>
7
8 ---
9 Origin: vendor
10 Forwarded: no
11 Last-Update: 2017-10-20
12
13 --- a/speller/make-hunspell-dict
14 +++ b/speller/make-hunspell-dict
15 @@ -56,12 +56,8 @@
16      cat $3 >> README_$1.txt
17    fi
18  
19 -  rm -f hunspell-$fn.zip
20 -  zip -9 hunspell-$fn.zip README_$1.txt $1.dic $1.aff
21 -
22    if [ -z "$3" ]; then
23      mkdir -p hunspell
24 -    cp hunspell-$fn.zip hunspell/
25  
26      #echo check
27  
28 @@ -70,11 +66,6 @@
29      #hunspell -l -d ./$1 < $1.dic.tocheck > misspelled
30  
31      cat $1.tocheck | iconv -f iso-8859-1 -t utf-8 | $UNIX2DOS > $1.txt
32 -    cat <<EOF > README.txt
33 -This zip file contains the words found in the corresponding Hunspell
34 -dictionary.  See the file README_$1.txt.
35 -EOF
36 -    zip -9 hunspell/wordlist-$fn.zip README.txt README_$1.txt $1.txt
37    fi
38  }
39