#! /bin/sh

BOARD_DIR="$( cd -- "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )"

SOURCE_ME_FILE=$BINARIES_DIR/cv_source_or_exec_me.sh

printf "export CV_OCTAVO_STANDARD_BINDIR=%s\n" $BINARIES_DIR > $SOURCE_ME_FILE
printf "echo CV_OCTAVO_STANDARD_BINDIR=%s >> cv_octavo_std_bindir.sh\n" $BINARIES_DIR >> $SOURCE_ME_FILE
printf "echo CV_OCTAVO_STANDARD_BINDIR=%s set in cv_octavo_std_bindir.sh\n" $BINARIES_DIR >> $SOURCE_ME_FILE
chmod +x $SOURCE_ME_FILE

cd ${BASE_DIR}
$BOARD_DIR/deploy_update/deploy.sh $BINARIES_DIR
