Mercurial > hg > beaglert
diff scripts/build_project.sh @ 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 | a9af964ac18a |
children | 86591d203c78 |
line wrap: on
line diff
--- a/scripts/build_project.sh Sun Jun 19 01:18:45 2016 +0100 +++ b/scripts/build_project.sh Sun Jun 19 03:28:53 2016 +0100 @@ -5,16 +5,9 @@ # The source files in this directory are copied to the board and compiled. # set defaults unless variables are already set -[ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" -[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/Bela/" -[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="Bela" -[ -z "$RUN_PROJECT" ] && RUN_PROJECT=1 -[ -z "$COMMAND_ARGS" ] && COMMAND_ARGS= -[ -z "$RUN_IN_FOREGROUND" ] && RUN_IN_FOREGROUND=1 -[ -z "$RUN_WITHOUT_SCREEN" ] && RUN_WITHOUT_SCREEN=0 -[ -z "$BBB_PROJECT_HOME" ] && BBB_PROJECT_HOME="${BBB_BELA_HOME}/projects/" -[ -z "$BBB_DEFAULT_PROJECT_NAME" ] && BBB_DEFAULT_PROJECT_NAME="scriptUploadedProject" -[ -z "$BBB_PROJECT_NAME" ] && BBB_PROJECT_NAME=$BBB_DEFAULT_PROJECT_NAME + +[ -f ".bela_common" ] && echo "loading bela_common" || { echo "Error: cannot find .bela_common . Make sure you run the script from within the scripts/ folder"; exit 1; } +source .bela_common usage() {