Time the compilation
This commit is contained in:
parent
24579e62c9
commit
39302bd960
|
@ -292,22 +292,22 @@ function compile_toxcore {
|
|||
return
|
||||
fi
|
||||
cd $INSTALL_DIR/toxcore
|
||||
SECONDS=0
|
||||
autoreconf -i
|
||||
./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
|
||||
rm $INSTALL_DIR/configure_toxcore.txt
|
||||
make > $INSTALL_DIR/make_toxcore.txt
|
||||
if [ ! "$?" = "0" ]; then
|
||||
duration=$SECONDS
|
||||
echo $"Toxcore compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." >> $INSTALL_LOG
|
||||
echo $'Unable to make toxcore' >> $INSTALL_LOG
|
||||
echo $'See $INSTALL_DIR/make_toxcore.txt' >> $INSTALL_LOG
|
||||
return
|
||||
fi
|
||||
rm $INSTALL_DIR/configure_toxcore.txt
|
||||
rm $INSTALL_DIR/make_toxcore.txt
|
||||
make install
|
||||
duration=$SECONDS
|
||||
echo $"Toxcore compile $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." >> $INSTALL_LOG
|
||||
cp /usr/local/lib/libtoxcore* /usr/lib/
|
||||
|
||||
if [ ! -f /usr/local/bin/tox-bootstrapd ]; then
|
||||
|
@ -393,8 +393,11 @@ function compile_tox_client {
|
|||
fi
|
||||
|
||||
cd $INSTALL_DIR/toxic
|
||||
SECONDS=0
|
||||
make > $INSTALL_DIR/make_toxic.txt
|
||||
if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then
|
||||
duration=$SECONDS
|
||||
echo $"Toxic client compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." >> $INSTALL_LOG
|
||||
echo $'Unable to make tox client' >> $INSTALL_LOG
|
||||
echo $"See $INSTALL_DIR/make_toxic.txt" >> $INSTALL_LOG
|
||||
exit 74872
|
||||
|
@ -405,6 +408,8 @@ function compile_tox_client {
|
|||
echo $"Tox client was not installed to $TOXIC_FILE" >> $INSTALL_LOG
|
||||
exit 63278
|
||||
fi
|
||||
duration=$SECONDS
|
||||
echo $"Toxic client compile $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." >> $INSTALL_LOG
|
||||
|
||||
echo $'toxic client compile completed' >> $INSTALL_LOG
|
||||
}
|
||||
|
|
|
@ -491,9 +491,6 @@ function mesh_tox_node {
|
|||
|
||||
$CHROOT_PREFIX autoreconf -i
|
||||
$CHROOT_PREFIX ./configure --enable-daemon --disable-av
|
||||
if [ ! "$?" = "0" ]; then
|
||||
return
|
||||
fi
|
||||
$CHROOT_PREFIX make
|
||||
if [ ! "$?" = "0" ]; then
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue