Skip to content

Commit

Permalink
Drop even more output
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-verchikov committed Oct 18, 2013
1 parent 0fb6bc8 commit 030467f
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions BUILD.DEBIAN
Expand Up @@ -2,15 +2,18 @@

function no_output_execution() {
local COMMAND="${*}"
local LOGFILE=command.log
local LOGFILE=$(mktemp)

echo "Executing ${COMMAND}"
echo "Please wait..."
echo "${COMMAND} > ${LOGFILE} 2>&1" | bash
if [ $? -eq 0 ]; then
echo "${COMMAND} succeeded"
rm -f ${LOGFILE}
else
echo "${COMMAND} failed"
cat ${LOGFILE}
rm -f ${LOGFILE}
exit 1
fi
}
Expand All @@ -36,7 +39,9 @@ EOF
wget --output-document=${YAJL_GZ} http://github.com/lloyd/yajl/tarball/2.0.1
tar -xf ${YAJL_GZ}
pushd lloyd-yajl-*
no_output_execution ./configure -p /usr && make && sudo make install
no_output_execution ./configure -p /usr
no_output_execution make
no_output_execution sudo make install
popd
}

Expand All @@ -45,7 +50,7 @@ function install_boost() {
local BOOST_OUTPUT=${BOOST}.tar.bz2
local BOOST_DOWNLOAD_URL='http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.54.0%2F&ts=1382092729&use_mirror=heanet'

sudo apt-get install libbz2-dev -y
no_output_execution sudo apt-get install libbz2-dev -y
wget --output-document=${BOOST_OUTPUT} ${BOOST_DOWNLOAD_URL}
tar --bzip2 -xf ${BOOST_OUTPUT}
pushd ${BOOST}
Expand All @@ -59,15 +64,15 @@ no_output_execution sudo apt-get update --fix-missing
install_yajl
install_boost

sudo apt-get install apache2 apache2-prefork-dev -y
sudo apt-get install cpanminus -y
sudo apt-get install autoconf libtool libgearman-dev liblog4cxx10-dev libcurl4-openssl-dev ccache swig libperl-dev php5-dev -y
sudo add-apt-repository ppa:jtaylor/jtaylor -y
sudo apt-get update
sudo apt-get install libsoci3.1-dev libsoci-core3.1 libsoci-mysql3.1 libsoci-sqlite3-3.1 -y
sudo apt-get install libjson-perl liblog-log4perl-perl liblog-dispatch-perl sqlite3 -y
no_output_execution sudo apt-get install apache2 apache2-prefork-dev -y
no_output_execution sudo apt-get install cpanminus -y
no_output_execution sudo apt-get install autoconf libtool libgearman-dev liblog4cxx10-dev libcurl4-openssl-dev ccache swig libperl-dev php5-dev -y
no_output_execution sudo add-apt-repository ppa:jtaylor/jtaylor -y
no_output_execution sudo apt-get update
no_output_execution sudo apt-get install libsoci3.1-dev libsoci-core3.1 libsoci-mysql3.1 libsoci-sqlite3-3.1 -y
no_output_execution sudo apt-get install libjson-perl liblog-log4perl-perl liblog-dispatch-perl sqlite3 -y

sudo cpanm HTTP::Daemon
sudo cpanm Test::Trivial
no_output_execution sudo cpanm HTTP::Daemon
no_output_execution sudo cpanm Test::Trivial

export PATH=/usr/lib/ccache:$PATH

0 comments on commit 030467f

Please sign in to comment.