|
Packit |
8140f7 |
# Makefile ispell-gaeilge
|
|
Packit |
8140f7 |
# INSTALLATION=gaeilgemor
|
|
Packit |
8140f7 |
# INSTALLATION=gaeilgelit
|
|
Packit |
8140f7 |
INSTALLATION=gaeilge
|
|
Packit |
8140f7 |
ISPELLDIR=/usr/lib/ispell
|
|
Packit |
8140f7 |
ISPELLBIN=/usr/bin
|
|
Packit |
8140f7 |
INSTALL=/usr/bin/install
|
|
Packit |
8140f7 |
SHELL=/bin/sh
|
|
Packit |
8140f7 |
MAKE=/usr/bin/make
|
|
Packit |
8140f7 |
GALLPERSONAL=aitiuil ceol eachtar gall giorr gno lit romhanach
|
|
Packit |
8140f7 |
GAELPERSONAL=bioblabeag daoine logainm miotas.txt stair.txt treise
|
|
Packit |
8140f7 |
PERSONAL=$(GALLPERSONAL) $(GAELPERSONAL)
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
# Shouldn't have to change anything below here
|
|
Packit |
8140f7 |
RELEASE=5.0
|
|
Packit |
8140f7 |
RAWWORDS= gaeilge.raw
|
|
Packit |
8140f7 |
LITWORDS= gaeilge.lit dinneenok.txt
|
|
Packit |
8140f7 |
ALTWORDS= gaeilge.mor
|
|
Packit |
8140f7 |
AFFIXFILE= gaeilge.aff
|
|
Packit |
8140f7 |
ALTAFFIXFILE=gaeilgemor.aff
|
|
Packit |
8140f7 |
INSTALL_DATA=$(INSTALL) -m 444
|
|
Packit |
8140f7 |
|
|
Packit Service |
9aa50b |
SORT=/usr/bin/sort -u
|
|
Packit |
8140f7 |
|
|
Packit Service |
9aa50b |
hashtable: $(INSTALLATION).hash
|
|
Packit Service |
9aa50b |
|
|
Packit Service |
9aa50b |
all: gaeilge.hash gaeilgelit.hash gaeilgemor.hash
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
# grep -v filters out Malmö, São, LC_ALL=C needed!
|
|
Packit Service |
9aa50b |
gaeilge.hash: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
|
|
Packit |
8140f7 |
LC_ALL=C $(SORT) $(RAWWORDS) $(PERSONAL) | LC_ALL=C grep -v "[^'a-zA-ZáéíóúÁÉÍÓÚ/-]" | iconv -f UTF-8 -t iso-8859-1 > gaeilge.focail
|
|
Packit Service |
9aa50b |
iconv -f UTF-8 -t iso-8859-1 $(AFFIXFILE) > tempaff.txt
|
|
Packit Service |
9aa50b |
$(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilge.hash
|
|
Packit |
8140f7 |
rm -f gaeilge.focail tempaff.txt
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
gaeilgelit.hash: $(RAWWORDS) $(LITWORDS) gaeilgelit.aff $(PERSONAL)
|
|
Packit |
8140f7 |
LC_ALL=C $(SORT) $(RAWWORDS) $(LITWORDS) $(PERSONAL) | LC_ALL=C grep -v "[^'a-zA-ZáéíóúÁÉÍÓÚ/-]" | iconv -f UTF-8 -t iso-8859-1 > gaeilge.focail
|
|
Packit |
8140f7 |
iconv -f UTF-8 -t iso-8859-1 gaeilgelit.aff > tempaff.txt
|
|
Packit |
8140f7 |
$(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilgelit.hash
|
|
Packit |
8140f7 |
rm -f gaeilge.focail tempaff.txt
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
gaeilgemor.hash: $(RAWWORDS) $(LITWORDS) $(ALTWORDS) $(ALTAFFIXFILE) $(PERSONAL)
|
|
Packit |
8140f7 |
LC_ALL=C $(SORT) $(RAWWORDS) $(LITWORDS) $(ALTWORDS) $(PERSONAL) | LC_ALL=C grep -v "[^'a-zA-ZáéíóúÁÉÍÓÚ/-]" | iconv -f UTF-8 -t iso-8859-1 > gaeilge.focail
|
|
Packit |
8140f7 |
iconv -f UTF-8 -t iso-8859-1 $(ALTAFFIXFILE) > tempaff.txt
|
|
Packit |
8140f7 |
$(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilgemor.hash
|
|
Packit |
8140f7 |
rm -f gaeilge.focail tempaff.txt
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
$(ALTAFFIXFILE): $(AFFIXFILE) gaeilgemor.diff
|
|
Packit |
8140f7 |
patch -o gaeilgemor.aff gaeilge.aff < gaeilgemor.diff
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
# "personal" file used in gramadoir-ga "lexfromdb", that's all
|
|
Packit |
8140f7 |
personal: biobla $(PERSONAL)
|
|
Packit |
8140f7 |
sort -u $(PERSONAL) > ./personal
|
|
Packit |
8140f7 |
rm -f $(HOME)/.ispell_$(INSTALLATION)
|
|
Packit |
8140f7 |
LC_ALL=C sort -u biobla | iconv -f UTF-8 -t iso-8859-1 > $(HOME)/.ispell_$(INSTALLATION)
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
gaeilgelit.aff: $(AFFIXFILE)
|
|
Packit |
8140f7 |
cp $(AFFIXFILE) gaeilgelit.aff
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
install: $(INSTALLATION).hash $(INSTALLATION).aff
|
|
Packit |
8140f7 |
$(INSTALL_DATA) $(INSTALLATION).hash $(ISPELLDIR)
|
|
Packit |
8140f7 |
iconv -f UTF-8 -t iso-8859-1 $(INSTALLATION).aff > tempaff.txt
|
|
Packit |
8140f7 |
$(INSTALL_DATA) tempaff.txt $(ISPELLDIR)/$(INSTALLATION).aff
|
|
Packit |
8140f7 |
rm -f tempaff.txt
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
installall: gaeilge.hash gaeilgelit.hash gaeilgemor.hash gaeilgelit.aff
|
|
Packit |
8140f7 |
$(INSTALL_DATA) gaeilge.hash $(ISPELLDIR)
|
|
Packit |
8140f7 |
iconv -f UTF-8 -t iso-8859-1 $(AFFIXFILE) > tempaff.txt
|
|
Packit |
8140f7 |
$(INSTALL_DATA) tempaff.txt $(ISPELLDIR)/$(AFFIXFILE)
|
|
Packit |
8140f7 |
$(INSTALL_DATA) gaeilgelit.hash $(ISPELLDIR)
|
|
Packit |
8140f7 |
iconv -f UTF-8 -t iso-8859-1 gaeilgelit.aff > tempaff.txt
|
|
Packit |
8140f7 |
$(INSTALL_DATA) tempaff.txt $(ISPELLDIR)/gaeilgelit.aff
|
|
Packit |
8140f7 |
$(INSTALL_DATA) gaeilgemor.hash $(ISPELLDIR)
|
|
Packit |
8140f7 |
iconv -f UTF-8 -t iso-8859-1 $(ALTAFFIXFILE) > tempaff.txt
|
|
Packit |
8140f7 |
$(INSTALL_DATA) tempaff.txt $(ISPELLDIR)/$(ALTAFFIXFILE)
|
|
Packit |
8140f7 |
rm -f tempaff.txt
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
clean:
|
|
Packit |
8140f7 |
rm -f *.cnt *.stat *.bak *.tar *.tar.gz *.zip *.tar.bz2 gaeilge sounds.txt repl aspellrev.txt IG2.* EN.temp IG.missp IG.temp IG.temp2 personal accents.txt ga-*dictionary.xpi *.oxt mimetype SentenceExceptList.xml WordExceptList.xml DocumentList.xml acor_ga-IE.dat validalts.txt ga_inclusion.txt ga_corpus.txt a.tmp seanghaeilge.dic README_ga-Latg-IE.txt README_ga_IE.txt gaelspell.txt caighdean.txt gaeilge.dic ga-media-freq.txt ga_corpus-utf8.txt ga-word-freq.txt ga-freq.txt ga-phrases-freq.txt ga_inclusion-utf8.txt twitter-survey.txt gaelspellalt-ascii.txt gaelspell-anything.txt gaelspellalt.txt text-freq.txt ga-phrases.txt README_hyph_ga_IE.txt README_th_ga_IE_v2.txt hyph_ga_IE.dic th_ga_IE_v2.dat th_ga_IE_v2.idx
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
# Clean back to what gets packaged up in an ispell-gaeilge tarball
|
|
Packit |
8140f7 |
# So don't wipe out generated ChangeLog, giorr, romhanach, etc.
|
|
Packit |
8140f7 |
# See veryclean, maintainer-clean below
|
|
Packit |
8140f7 |
distclean:
|
|
Packit |
8140f7 |
$(MAKE) clean
|
|
Packit |
8140f7 |
rm -f *.hash aspell.txt aspelllit.txt aspellalt.txt ga_IE.dic gaeilgelit.aff $(ALTAFFIXFILE) ga_IE.aff gaelu ga-Latg-IE.dic ga-Latg-IE.aff
|
|
Packit |
8140f7 |
|
|
Packit |
8140f7 |
#############################################################################
|