diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-25 01:06:25 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-25 01:06:25 +0000 |
| commit | 93eab9312f5d13168e63b84338bdc7bff160e3d1 (patch) | |
| tree | 4f0fa484e93835b1eac71796afbf0c4eb6a8979a /src/backend/snowball/Makefile | |
| parent | 7351b5fa1781c3942d2d5ff2116d2d0ba882bd42 (diff) | |
| download | postgresql-93eab9312f5d13168e63b84338bdc7bff160e3d1.tar.gz | |
Rename built-in Snowball stemmer dictionaries to be english_stem,
russian_stem, etc. Per discussion.
Diffstat (limited to 'src/backend/snowball/Makefile')
| -rw-r--r-- | src/backend/snowball/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/backend/snowball/Makefile b/src/backend/snowball/Makefile index f1d54eb099..fdfe895ba5 100644 --- a/src/backend/snowball/Makefile +++ b/src/backend/snowball/Makefile @@ -2,7 +2,7 @@ # # Makefile for src/backend/snowball # -# $PostgreSQL: pgsql/src/backend/snowball/Makefile,v 1.1 2007/08/21 01:11:15 tgl Exp $ +# $PostgreSQL: pgsql/src/backend/snowball/Makefile,v 1.2 2007/08/25 01:06:24 tgl Exp $ # #------------------------------------------------------------------------- @@ -47,6 +47,8 @@ OBJS= dict_snowball.o api.o utilities.o \ stem_UTF_8_turkish.o # second column is name of latin dictionary, if different +# Note order dependency: use of some other language as latin dictionary +# must come after creation of that language LANGUAGES= \ danish danish \ dutch dutch \ @@ -93,18 +95,19 @@ ifeq ($(enable_shared), yes) while [ "$$#" -gt 0 ] ; \ do \ lang=$$1; shift; \ + nonlatdictname=$$lang; \ + latdictname=$$1; shift; \ if [ -s $(srcdir)/stopwords/$${lang}.stop ] ; then \ stop=", StopWords=$${lang}" ; \ else \ stop=""; \ fi; \ - nonlatdictname=$$lang; \ - latdictname=$$1; shift; \ cat $(srcdir)/snowball.sql.in | \ - sed -e "s#_DICTNAME_#$$lang#g" | \ + sed -e "s#_LANGNAME_#$$lang#g" | \ + sed -e "s#_DICTNAME_#$${lang}_stem#g" | \ sed -e "s#_CFGNAME_#$$lang#g" | \ - sed -e "s#_LATDICTNAME_#$$latdictname#g" | \ - sed -e "s#_NONLATDICTNAME_#$$nonlatdictname#g" | \ + sed -e "s#_LATDICTNAME_#$${latdictname}_stem#g" | \ + sed -e "s#_NONLATDICTNAME_#$${nonlatdictname}_stem#g" | \ sed -e "s#_STOPWORDS_#$$stop#g" ; \ done >> $@ else |
