More logging of compile

This commit is contained in:
Bob Mottram 2016-05-29 10:06:51 +01:00
parent 286d796722
commit 24579e62c9
1 changed files with 11 additions and 7 deletions

View File

@ -293,17 +293,20 @@ function compile_toxcore {
fi
cd $INSTALL_DIR/toxcore
autoreconf -i
./configure --enable-daemon --disable-av
./configure --enable-daemon --disable-av > $INSTALL_DIR/configure_toxcore.txt
if [ ! "$?" = "0" ]; then
echo $'Unable to configure toxcore' >> $INSTALL_LOG
echo $'See $INSTALL_DIR/configure_toxcore.txt' >> $INSTALL_LOG
return
fi
make > /root/make_toxcore.txt
rm $INSTALL_DIR/configure_toxcore.txt
make > $INSTALL_DIR/make_toxcore.txt
if [ ! "$?" = "0" ]; then
echo $'Unable to make toxcore' >> $INSTALL_LOG
echo $'See $INSTALL_DIR/make_toxcore.txt' >> $INSTALL_LOG
return
fi
rm /root/make_toxcore.txt
rm $INSTALL_DIR/make_toxcore.txt
make install
cp /usr/local/lib/libtoxcore* /usr/lib/
@ -390,12 +393,13 @@ function compile_tox_client {
fi
cd $INSTALL_DIR/toxic
make > /root/make_toxic.txt
make > $INSTALL_DIR/make_toxic.txt
if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then
echo $'Unable to make tox client' >> $INSTALL_LOG
echo $"See $INSTALL_DIR/make_toxic.txt" >> $INSTALL_LOG
exit 74872
fi
rm /root/make_toxic.txt
rm $INSTALL_DIR/make_toxic.txt
make install
if [ ! -f $TOXIC_FILE ]; then
echo $"Tox client was not installed to $TOXIC_FILE" >> $INSTALL_LOG