Mercurial > hg > beaglert
diff scripts/setup_board.sh @ 64:b89dd0c97a04 newapi
added Makefile, added default_main, added error checking in scripts
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 15 Jul 2015 19:59:29 +0100 |
parents | 3ada83df91a5 |
children | eec746389e20 |
line wrap: on
line diff
--- a/scripts/setup_board.sh Wed Jul 15 19:46:51 2015 +0100 +++ b/scripts/setup_board.sh Wed Jul 15 19:59:29 2015 +0100 @@ -44,16 +44,20 @@ then # Stop BeagleRT if running and remove all files echo "Stopping BeagleRT and removing old files." - ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" + ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" # Copy relevant files to BeagleBone Black echo "Copying new files to BeagleBone..." scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $BBB_ADDRESS:$BBB_PATH + if [ $? -ne 0 ] + then + echo "Error while copying files" + exit + fi # Make remaining directories needed for building echo "Creating directory structure on BeagleBone..." - ssh $BBB_ADDRESS "mkdir $BBB_PATH/source ; mkdir $BBB_PATH/build ; mkdir $BBB_PATH/build/core ; mkdir $BBB_PATH/build/source" - + ssh $BBB_ADDRESS "mkdir -p $BBB_PATH/source ; mkdir -p $BBB_PATH/build ; mkdir -p $BBB_PATH/build/core ; mkdir -p $BBB_PATH/build/source" &&\ echo "Done." fi