Skip to content

Instantly share code, notes, and snippets.

@temas
Created December 14, 2011 21:36
Show Gist options
  • Save temas/1478661 to your computer and use it in GitHub Desktop.
Save temas/1478661 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$TRAVIS" != "true" ]; then
echo "This script is for configuring the Travis-CI environment only."
exit 1
fi
ldconfig -v | grep clucene
if [ "$?" == "1" ]; then
sudo apt-get install -qy cmake
curDir=`pwd`
cd /tmp
git clone git://clucene.git.sourceforge.net/gitroot/clucene/clucene
mkdir clucene/build
cd clucene/build
cmake .. && make && sudo make install
grep local /etc/ld.so.conf || (sudo echo "/usr/local/lib" >> /etc/ld.so.conf && sudo ldconfig)
cd $curDir
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment