Sha256: 8adf76064ad16e3cca14b0aff767e2898651ee672b0ccb6d9821ef861b700c08
Contents?: true
Size: 1.72 KB
Versions: 3
Compression:
Stored size: 1.72 KB
Contents
#!/usr/bin/env bash version=$1 engine=$2 load_sphinx () { case $version in 2.1.9) url="http://sphinxsearch.com/files/sphinxsearch_2.1.9-release-0ubuntu11~trusty_amd64.deb" format="deb";; 2.2.11) url="http://sphinxsearch.com/files/sphinxsearch_2.2.11-release-1~trusty_amd64.deb" format="deb";; 3.0.3) url="http://sphinxsearch.com/files/sphinx-3.0.3-facc3fb-linux-amd64.tar.gz" format="gz";; 3.1.1) url="http://sphinxsearch.com/files/sphinx-3.1.1-612d99f-linux-amd64.tar.gz" format="gz";; *) echo "No Sphinx version $version available" exit 1;; esac if [ "$format" == "deb" ]; then curl --location $url -o sphinx.deb sudo apt-get install ./sphinx.deb else curl $url -o sphinx.tar.gz tar -zxvf sphinx.tar.gz sudo mv sphinx-$version/bin/* /usr/local/bin/. fi } load_manticore () { url="https://github.com/manticoresoftware/manticore/releases/download/$version/manticore_$version.deb" case $version in 2.6.4) url="https://github.com/manticoresoftware/manticoresearch/releases/download/2.6.4/manticore_2.6.4-180503-37308c3-release-stemmer.trusty_amd64-bin.deb";; 2.7.5) url="https://github.com/manticoresoftware/manticoresearch/releases/download/2.7.5/manticore_2.7.5-181204-0f016406-release-stemmer.trusty_amd64-bin.deb";; 2.8.2) url="https://github.com/manticoresoftware/manticoresearch/releases/download/2.8.2/manticore_2.8.2-190402-4e81114-release-stemmer.trusty_amd64-bin.deb";; *) echo "No Manticore version $version available" exit 1;; esac curl --location $url -o manticore.deb sudo apt-get install ./manticore.deb } if [ "$engine" == "sphinx" ]; then load_sphinx else load_manticore fi
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-4.3.2 | bin/loadsphinx |
thinking-sphinx-4.3.1 | bin/loadsphinx |
thinking-sphinx-4.3.0 | bin/loadsphinx |