Mercurial > hg > beaglert
comparison scripts/update_board @ 445:2b09be3fb0f2 prerelease
Re-implemented watch for build_heavy ... added .bela_common file for shared config and utilities
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 19 Jun 2016 03:28:53 +0100 |
parents | b596c72f0382 |
children | 86591d203c78 |
comparison
equal
deleted
inserted
replaced
444:cdf77b9e66bf | 445:2b09be3fb0f2 |
---|---|
4 # in preparation for building projects. It will remove any existing | 4 # in preparation for building projects. It will remove any existing |
5 # Bela directory before copying the files over | 5 # Bela directory before copying the files over |
6 | 6 |
7 [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" | 7 [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" |
8 [ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="/root/Bela/" | 8 [ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="/root/Bela/" |
9 source .bela_common | |
9 | 10 |
10 FILES_TO_COPY="core include Makefile libNE10.a libprussdrv.a examples Doxyfile" | 11 FILES_TO_COPY="core include Makefile libNE10.a libprussdrv.a examples Doxyfile" |
11 | 12 |
12 # The following variables are manually copied from the Makefile. | 13 # The following variables are manually copied from the Makefile. |
13 # It is a bit nasty, but here we need to handle the case that the board may be | 14 # It is a bit nasty, but here we need to handle the case that the board may be |
79 | 80 |
80 # Find location of this script so we can locate the rest of the files | 81 # Find location of this script so we can locate the rest of the files |
81 SCRIPTDIR=$(dirname "$0") | 82 SCRIPTDIR=$(dirname "$0") |
82 [ -z "$IDE_FOLDER" ] && IDE_FOLDER=$SCRIPTDIR/../../bela-ide/ | 83 [ -z "$IDE_FOLDER" ] && IDE_FOLDER=$SCRIPTDIR/../../bela-ide/ |
83 | 84 |
84 | 85 set_date "stat $BBB_BELA_HOME &>/dev/null" && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 |
85 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %Z'`\" > /dev/null; stat $BBB_BELA_HOME &>/dev/null" && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 | |
86 | 86 |
87 if [ $DESTINATION_EMPTY -eq 0 ]; | 87 if [ $DESTINATION_EMPTY -eq 0 ]; |
88 then | 88 then |
89 echo "Updating the Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME" | 89 echo "Updating the Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME" |
90 if [ $RESET_BOARD -eq 1 ]; | 90 if [ $RESET_BOARD -eq 1 ]; |