|
|
@ -2,8 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
sudo apt-get install -y autoconf libtool pkg-config
|
|
|
|
if sudo apt-get install -y autoconf libtool pkg-config; then
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -e /usr/local/lib/libtsm.a ]; then
|
|
|
|
if [ ! -e /usr/local/lib/libtsm.a ]; then
|
|
|
|
echo "libtsm missing, compiling from source..."
|
|
|
|
echo "libtsm missing, compiling from source..."
|
|
|
|
DIR=$(mktemp -d -t tsmXXXXXX)
|
|
|
|
DIR=$(mktemp -d -t tsmXXXXXX)
|
|
|
@ -18,13 +17,16 @@ if [ ! -e /usr/local/lib/libtsm.a ]; then
|
|
|
|
cd -
|
|
|
|
cd -
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -e config/database.yml ]; then
|
|
|
|
|
|
|
|
cp config/database.yml.example config/database.yml
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -e /usr/local/lib/libtsm.a ]; then
|
|
|
|
if [ -e /usr/local/lib/libtsm.a ]; then
|
|
|
|
cd src && make && cd -
|
|
|
|
cd src && make && cd -
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "warning: sudo failed, not compiling libtsm and terminal binary"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -e config/database.yml ]; then
|
|
|
|
|
|
|
|
cp config/database.yml.example config/database.yml
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
rm -f log/*
|
|
|
|
rm -f log/*
|
|
|
|
bundle install
|
|
|
|
bundle install
|
|
|
|