hunspell-ga/ispell-gaeilge-5.0-buildhunspell.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

2018-07-08 03:48:08 +00:00
diff -urN ispell-gaeilge-5.0.old/makefile ispell-gaeilge-5.0/makefile
--- ispell-gaeilge-5.0.old/makefile 2017-12-04 02:02:36.000000000 +0530
+++ ispell-gaeilge-5.0/makefile 2018-07-08 09:16:16.483019455 +0530
@@ -20,17 +20,15 @@
2010-07-31 15:32:19 +00:00
ALTAFFIXFILE=gaeilgemor.aff
INSTALL_DATA=$(INSTALL) -m 444
2007-08-20 12:54:35 +00:00
2010-07-31 15:32:19 +00:00
-SORT=/usr/bin/sort -u
+SORT=sort -u
2007-08-20 12:54:35 +00:00
-hashtable: $(INSTALLATION).hash
2010-07-31 15:32:19 +00:00
-
2007-08-20 12:54:35 +00:00
-all: gaeilge.hash gaeilgelit.hash gaeilgemor.hash
2010-07-31 15:32:19 +00:00
+all: ga_IE.dic
2007-08-20 12:54:35 +00:00
2010-07-31 15:32:19 +00:00
# grep -v filters out Malmö, São, LC_ALL=C needed!
2007-08-20 12:54:35 +00:00
-gaeilge.hash: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
+ga_IE.dic: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
2018-07-08 03:48:08 +00:00
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
2010-07-31 15:32:19 +00:00
- $(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilge.hash
2007-08-20 12:54:35 +00:00
+ wc -l gaeilge.focail | cut -d ' ' -f 1 > ga_IE.dic
2010-07-31 15:32:19 +00:00
+ LC_ALL=C $(SORT) -f -t / --key 1,1 gaeilge.focail >> ga_IE.dic
rm -f gaeilge.focail tempaff.txt
2007-08-20 12:54:35 +00:00
gaeilgelit.hash: $(RAWWORDS) $(LITWORDS) gaeilgelit.aff $(PERSONAL)