Files
zulip/scripts/lib/build-tsearch-extras
Anders Kaseorg 392175d6e8 Use #!/usr/bin/env for bash shebangs.
/bin/sh and /usr/bin/env are the only two binaries that NixOS provides
at a fixed path (outside a buildFHSUserEnv sandbox).

This discussion was split from #11004.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-12-17 17:21:08 -08:00

16 lines
451 B
Bash
Executable File

#!/usr/bin/env bash
set -x
set -e
# Has only been tested on Red Hat systems; gmake is wrong for others.
cd "$(mktemp -d)"
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"