2018-12-18 02:08:53 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-12-14 03:25:25 +01:00
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2018-12-17 20:21:49 +01:00
|
|
|
# Has only been tested on Red Hat systems; gmake is wrong for others.
|
|
|
|
|
2018-12-14 03:25:25 +01:00
|
|
|
cd "$(mktemp -d)"
|
|
|
|
|
|
|
|
git clone https://github.com/zulip/tsearch_extras
|
|
|
|
(cd tsearch_extras && gmake && make install)
|
|
|
|
|
2018-12-16 20:31:18 +01:00
|
|
|
PGVER=10
|
2018-12-14 03:25:25 +01:00
|
|
|
# Link installed hunspell-en-US to tsearch data
|
2018-12-16 20:31:18 +01:00
|
|
|
ln -sf /usr/share/myspell/en_US.dic "/usr/pgsql-$PGVER/share/tsearch_data/en_us.dict"
|
|
|
|
ln -sf /usr/share/myspell/en_US.aff "/usr/pgsql-$PGVER/share/tsearch_data/en_us.affix"
|