2014-06-22 09:42:26 +00:00
|
|
|
#!/bin/bash
|
2012-05-05 23:53:50 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-06-25 08:08:36 +00:00
|
|
|
sudo apt-get install -y autoconf libtool pkg-config
|
2014-06-22 09:42:26 +00:00
|
|
|
|
|
|
|
if [ ! -e /usr/local/lib/libtsm.a ]; then
|
2013-08-25 15:03:13 +00:00
|
|
|
echo "libtsm missing, compiling from source..."
|
2013-10-30 03:42:43 +00:00
|
|
|
DIR=$(mktemp -d -t tsmXXXXXX)
|
2013-08-25 15:03:13 +00:00
|
|
|
cd $DIR
|
2013-10-30 10:27:06 +00:00
|
|
|
git clone git://people.freedesktop.org/~dvdhrm/libtsm .
|
2013-11-05 18:38:37 +00:00
|
|
|
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
|
|
|
|
|
2014-06-22 09:42:26 +00:00
|
|
|
if [ ! -e config/database.yml ]; then
|
|
|
|
cp config/database.yml.example config/database.yml
|
|
|
|
fi
|
|
|
|
|
2014-02-01 09:02:04 +00:00
|
|
|
cd src && make && cd -
|
|
|
|
|
2012-05-05 23:53:50 +00:00
|
|
|
rm -f log/*
|
2012-10-12 20:03:48 +00:00
|
|
|
bundle install
|
2013-08-25 15:03:13 +00:00
|
|
|
bundle exec rake db:setup
|
2013-08-25 15:15:00 +00:00
|
|
|
mkdir -p tmp
|
2012-05-05 23:53:50 +00:00
|
|
|
touch tmp/restart.txt
|