Check that tox client gets installed

This commit is contained in:
Bob Mottram 2016-04-12 14:47:55 +01:00
parent 64afd95bd2
commit 37ec4cebf8
1 changed files with 12 additions and 6 deletions

View File

@ -568,7 +568,7 @@ function mesh_tox_client {
else else
TOXIC_COMMIT_MAIN=$(cat /usr/bin/freedombone | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}') TOXIC_COMMIT_MAIN=$(cat /usr/bin/freedombone | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
fi fi
if [ ${#TOX_COMMIT_MAIN} -gt 10 ]; then if [ ${#TOXIC_COMMIT_MAIN} -gt 10 ]; then
TOXIC_COMMIT=$TOXIC_COMMIT_MAIN TOXIC_COMMIT=$TOXIC_COMMIT_MAIN
fi fi
@ -578,13 +578,19 @@ function mesh_tox_client {
$CHROOT_PREFIX git_clone $TOXIC_REPO $INSTALL_DIR/toxic $CHROOT_PREFIX git_clone $TOXIC_REPO $INSTALL_DIR/toxic
$CHROOT_PREFIX cd $INSTALL_DIR/toxic $CHROOT_PREFIX cd $INSTALL_DIR/toxic
$CHROOT_PREFIX git checkout $TOXIC_COMMIT -b $TOXIC_COMMIT $CHROOT_PREFIX git checkout $TOXIC_COMMIT -b $TOXIC_COMMIT
if ! grep -q "Toxic commit" $rootdir$COMPLETION_FILE; then
echo "Toxic commit:$TOXIC_COMMIT" >> $rootdir$COMPLETION_FILE echo "Toxic commit:$TOXIC_COMMIT" >> $rootdir$COMPLETION_FILE
fi
$CHROOT_PREFIX make $CHROOT_PREFIX make
if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then
exit 74872 exit 74872
fi fi
$CHROOT_PREFIX make install $CHROOT_PREFIX make install
if [ ! -f /usr/local/bin/toxic ]; then
echo $'Tox client was not installed'
exit 63278
fi
} }
function mesh_zeronet { function mesh_zeronet {