asciinema.org/script/setup

25 lines
462 B
Plaintext
Raw Normal View History

2012-05-05 23:53:50 +00:00
#!/bin/sh
set -e
if [ ! -e /usr/local/lib/libtsm.a ];
2013-08-25 15:03:13 +00:00
then
echo "libtsm missing, compiling from source..."
DIR=$(mktemp -d -t tsmXXXXXX)
2013-08-25 15:03:13 +00:00
cd $DIR
git clone git://people.freedesktop.org/~dvdhrm/libtsm .
git checkout bb4e454
2013-08-25 15:03:13 +00:00
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