Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
444:cdf77b9e66bf | 445:2b09be3fb0f2 |
---|---|
3 # This script compiles a Bela project on the BeagleBone Black and | 3 # This script compiles a Bela project on the BeagleBone Black and |
4 # optionally runs it. Pass a directory path in the first argument. | 4 # optionally runs it. Pass a directory path in the first argument. |
5 # The source files in this directory are copied to the board and compiled. | 5 # The source files in this directory are copied to the board and compiled. |
6 | 6 |
7 # set defaults unless variables are already set | 7 # set defaults unless variables are already set |
8 [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" | 8 |
9 [ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/Bela/" | 9 [ -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; } |
10 [ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="Bela" | 10 source .bela_common |
11 [ -z "$RUN_PROJECT" ] && RUN_PROJECT=1 | |
12 [ -z "$COMMAND_ARGS" ] && COMMAND_ARGS= | |
13 [ -z "$RUN_IN_FOREGROUND" ] && RUN_IN_FOREGROUND=1 | |
14 [ -z "$RUN_WITHOUT_SCREEN" ] && RUN_WITHOUT_SCREEN=0 | |
15 [ -z "$BBB_PROJECT_HOME" ] && BBB_PROJECT_HOME="${BBB_BELA_HOME}/projects/" | |
16 [ -z "$BBB_DEFAULT_PROJECT_NAME" ] && BBB_DEFAULT_PROJECT_NAME="scriptUploadedProject" | |
17 [ -z "$BBB_PROJECT_NAME" ] && BBB_PROJECT_NAME=$BBB_DEFAULT_PROJECT_NAME | |
18 | 11 |
19 usage() | 12 usage() |
20 { | 13 { |
21 THIS_SCRIPT=`basename "$0"` | 14 THIS_SCRIPT=`basename "$0"` |
22 echo "Usage: $THIS_SCRIPT [-c command-line-args] [-nbfF] <directory-with-source-files>" | 15 echo "Usage: $THIS_SCRIPT [-c command-line-args] [-nbfF] <directory-with-source-files>" |