asciinema.org/script/setup

25 lines
443 B
Plaintext
Raw Normal View History

2012-05-05 23:53:50 +00:00
#!/bin/sh
set -e
2013-08-25 15:03:13 +00:00
if [ ! -e /usr/local/lib/libtsm.so ];
then
echo "libtsm missing, compiling from source..."
DIR=$(mktemp -d)
cd $DIR
git clone https://github.com/dvdhrm/libtsm.git .
git checkout d8fff00
test -f ./configure || NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
2013-08-25 15:09:24 +00:00
sudo ldconfig
2013-08-25 15:03:13 +00:00
cd -
fi
2012-05-05 23:53:50 +00:00
rm -f log/*
bundle install
2013-08-25 15:03:13 +00:00
bundle exec rake db:setup
mkdir -p tmp
2012-05-05 23:53:50 +00:00
touch tmp/restart.txt