mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
build-tsearch-extras: Add support for Debian/Ubuntu.
This commit is contained in:
@@ -2,14 +2,13 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
# Has only been tested on Red Hat systems; gmake is wrong for others.
|
||||
|
||||
cd "$(mktemp -d)"
|
||||
distro=$(lsb_release -is)
|
||||
|
||||
git clone https://github.com/zulip/tsearch_extras
|
||||
(cd tsearch_extras && gmake && make install)
|
||||
|
||||
PGVER=10
|
||||
# Link installed hunspell-en-US to tsearch data
|
||||
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"
|
||||
if [ "$distro" = "Ubuntu" ] || [ "$distro" == "Debian" ]; then
|
||||
make="make"
|
||||
else
|
||||
make="gmake"
|
||||
fi
|
||||
(cd tsearch_extras && "$make" && "$make" install)
|
||||
|
||||
Reference in New Issue
Block a user