diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2006-12-21 17:35:55 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2006-12-21 17:35:55 +0000 |
commit | 3dd05aba09b904147d3e7323c7412c2e2a754c4a (patch) | |
tree | 112ea84cb172a10b0128a9afa758c910a71aa3eb | |
parent | 2244ccd408298c58ab43c300900e0a61dd6065a2 (diff) | |
download | postgresql-3dd05aba09b904147d3e7323c7412c2e2a754c4a.tar.gz postgresql-3dd05aba09b904147d3e7323c7412c2e2a754c4a.zip |
Fix convertion for 'PFX flag N num'
-rw-r--r-- | contrib/tsearch2/my2ispell/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/my2ispell/Makefile b/contrib/tsearch2/my2ispell/Makefile index 35473cfe812..426129a8df9 100644 --- a/contrib/tsearch2/my2ispell/Makefile +++ b/contrib/tsearch2/my2ispell/Makefile @@ -34,7 +34,7 @@ $(LANGUAGE).aff: $(ZIPFILE).aff | perl -pi \ -e 's/^COMPOUNDFLAG\s+(\S+)/compoundwords controlled $$1/;' \ -e 's/^COMPOUNDMIN\s+(\d+)/compoundmin $$1/;' \ - -e 's/^PFX\s+(\S+)\s+Y\s+\d+.*$$/ if ( !$$wasprf ) { $$wasprf=1; "prefixes\n\nflag $$1:" } else { "flag $$1:" } /e;' \ + -e 's/^PFX\s+(\S+)\s+([YN])\s+\d+.*$$/ if ( !$$wasprf ) { $$wasprf=1; "prefixes\n\nflag $$1:" } else { "flag $$1:" } /e;' \ -e 's/^PFX\s+\S+\s+(\S+)\s+(\S+)\s+(\S+)/ uc(" $$3 > $$2")/e;' \ -e 's/^(.*)SFX\s+(\S+)\s+([YN])\s+\d+.*$$/ $$flg=($$3 eq "Y") ? "*" : ""; $$flg="~$$flg" if length $$1; $$q=$$2; $$q="\\$$q" if $$q!~m#[a-zA-Z]#; if ( !$$wassfx ) { $$wassfx=1; "suffixes\n\nflag $$flg$$q:" } else { "flag $$flg$$q:" } /e;' \ -e 's/^.*SFX\s+\S+\s+(\S+)\s+(\S+)\s+(\S+)/ uc(" $$3 > ".( ($$1 eq "0") ? "" : "-$$1,").( ($$2 eq "0") ? "" : "$$2") )/e;' \ |