asciinema.org/script/setup
Chia-liang Kao 28d3048679 Improve libtsm installation
Also attempt to install on darwin
2013-10-30 11:42:44 +08:00

25 lines
454 B
Bash
Executable File

#!/bin/sh
set -e
if [ ! -e /usr/local/lib/libtsm.a ];
then
echo "libtsm missing, compiling from source..."
DIR=$(mktemp -d -t tsmXXXXXX)
cd $DIR
git clone git://github.com/sickill/libtsm.git .
git checkout 7dfa43d
test -f ./configure || NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
sudo ldconfig
cd -
fi
rm -f log/*
bundle install
bundle exec rake db:setup
mkdir -p tmp
touch tmp/restart.txt