Mercurial > hg > beaglert
diff scripts/build_project.sh @ 249:f2d47df23c68
build_project.sh launches from source folder, so to preserve relative paths
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 28 Apr 2016 19:29:28 +0100 |
parents | c74006ef86ca |
children | f51132ee0080 |
line wrap: on
line diff
--- 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