Mercurial > hg > beaglert
comparison scripts/build_project.sh @ 63:3ada83df91a5 newapi
Support stopping looped BeagleRT programs running within screen
author | andrewm |
---|---|
date | Wed, 15 Jul 2015 19:46:51 +0100 |
parents | afc593f7469e |
children | b89dd0c97a04 |
comparison
equal
deleted
inserted
replaced
62:a11e23f4e6af | 63:3ada83df91a5 |
---|---|
62 exit | 62 exit |
63 fi | 63 fi |
64 | 64 |
65 # Stop BeagleRT and clean out old source files | 65 # Stop BeagleRT and clean out old source files |
66 echo "Stopping BeagleRT and removing old source files..." | 66 echo "Stopping BeagleRT and removing old source files..." |
67 ssh -t -t $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null; sleep 0.5; make sourceclean -C $BBB_PATH" | 67 ssh -t -t $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5; make sourceclean -C $BBB_PATH" |
68 | 68 |
69 # Copy new source files to the board | 69 # Copy new source files to the board |
70 echo "Copying new source files to BeagleBone..." | 70 echo "Copying new source files to BeagleBone..." |
71 scp "$1"/* "$BBB_ADDRESS:$BBB_PATH/source/" | 71 scp "$1"/* "$BBB_ADDRESS:$BBB_PATH/source/" |
72 | 72 |