# HG changeset patch # User Giulio Moro # Date 1461868168 -3600 # Node ID f2d47df23c6882cfb2487754a2416ce97131e7b1 # Parent 6ca9b3f557bf7cc5dff3ae56a1a8087b9a71dce3 build_project.sh launches from source folder, so to preserve relative paths diff -r 6ca9b3f557bf -r f2d47df23c68 scripts/build_project.sh --- a/scripts/build_project.sh Thu Apr 28 17:09:42 2016 +0100 +++ b/scripts/build_project.sh Thu Apr 28 19:29:28 2016 +0100 @@ -114,11 +114,11 @@ if [ $RUN_WITHOUT_SCREEN -ne 0 ] then - ssh -t $BBB_ADDRESS "make all -C $BBB_PATH && $BBB_PATH/BeagleRT $COMMAND_ARGS" + ssh -t $BBB_ADDRESS "cd $BBB_PATH && make all && cd source && ../BeagleRT $COMMAND_ARGS" elif [ $RUN_IN_FOREGROUND -eq 0 ] then - ssh $BBB_ADDRESS "make all -C $BBB_PATH && screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" + ssh $BBB_ADDRESS "cd $BBB_PATH && make all && cd source && screen -S BeagleRT -d -m ../BeagleRT $COMMAND_ARGS" else - ssh -t $BBB_ADDRESS "make all -C $BBB_PATH && screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS" + ssh -t $BBB_ADDRESS "cd $BBB_PATH && make all && cd source && screen -S BeagleRT ../BeagleRT $COMMAND_ARGS" fi -fi \ No newline at end of file +fi