From 7e7c5856a2392fa7b355c404e1d549b79ade3c8d Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 7 Jun 2017 09:23:54 +0200 Subject: [PATCH] Remove setup script, it's obsolete for long time now --- script/cibuild.sh | 4 +++- script/setup | 35 ----------------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) delete mode 100755 script/setup diff --git a/script/cibuild.sh b/script/cibuild.sh index 8f125e1..bb62698 100755 --- a/script/cibuild.sh +++ b/script/cibuild.sh @@ -1,4 +1,6 @@ #!/bin/bash -./script/setup +mkdir -p tmp +bundle install +bundle exec rake db:setup bundle exec rake diff --git a/script/setup b/script/setup deleted file mode 100755 index 20b5ea8..0000000 --- a/script/setup +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -set -e - -if sudo apt-get install -y autoconf libtool pkg-config; then - if [ ! -e /usr/local/lib/libtsm.a ]; then - echo "libtsm missing, compiling from source..." - DIR=$(mktemp -d -t tsmXXXXXX) - cd $DIR - git clone https://github.com/asciinema/libtsm.git . - git checkout asciinema - test -f ./configure || NOCONFIGURE=1 ./autogen.sh - ./configure --prefix=/usr/local - make - sudo make install - sudo ldconfig - cd - - fi - - if [ -e /usr/local/lib/libtsm.a ]; then - cd src && make && cd - - 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/* -bundle install -bundle exec rake db:setup -mkdir -p tmp -touch tmp/restart.txt