From 2ccc60518b68fe1004ff534049c48136c0b7c5f5 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 16:24:03 +0000 Subject: Apply patch ispell-gaeilge-5.0-buildhunspell.patch patch_name: ispell-gaeilge-5.0-buildhunspell.patch present_in_specfile: true location_in_specfile: 1 --- diff --git a/makefile b/makefile index bb8e4b8..ada3a08 100644 --- a/makefile +++ b/makefile @@ -20,17 +20,15 @@ AFFIXFILE= gaeilge.aff ALTAFFIXFILE=gaeilgemor.aff INSTALL_DATA=$(INSTALL) -m 444 -SORT=/usr/bin/sort -u +SORT=sort -u -hashtable: $(INSTALLATION).hash - -all: gaeilge.hash gaeilgelit.hash gaeilgemor.hash +all: ga_IE.dic # grep -v filters out Malmö, São, LC_ALL=C needed! -gaeilge.hash: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL) +ga_IE.dic: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL) LC_ALL=C $(SORT) $(RAWWORDS) $(PERSONAL) | LC_ALL=C grep -v "[^'a-zA-ZáéíóúÁÉÍÓÚ/-]" | iconv -f UTF-8 -t iso-8859-1 > gaeilge.focail - iconv -f UTF-8 -t iso-8859-1 $(AFFIXFILE) > tempaff.txt - $(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilge.hash + wc -l gaeilge.focail | cut -d ' ' -f 1 > ga_IE.dic + LC_ALL=C $(SORT) -f -t / --key 1,1 gaeilge.focail >> ga_IE.dic rm -f gaeilge.focail tempaff.txt gaeilgelit.hash: $(RAWWORDS) $(LITWORDS) gaeilgelit.aff $(PERSONAL)