comparison scripts/build_project.sh @ 262:b491eb027f82 prerelease

build_project.sh defaults rewritten.
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 16 May 2016 14:59:36 +0100
parents f51132ee0080
children 7fe0d7c54bce
comparison
equal deleted inserted replaced
261:f51132ee0080 262:b491eb027f82
2 # 2 #
3 # This script compiles a BeagleRT project on the BeagleBone Black and 3 # This script compiles a BeagleRT 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 BBB_ADDRESS="root@192.168.7.2" 7 # set defaults unless variables are already set
8 BBB_PATH="~/BeagleRT" 8 [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2"
9 RUN_PROJECT=1 9 [ -z "$BBB_PATH" ] && BBB_PATH="~/BeagleRT"
10 COMMAND_ARGS= 10 [ -z "$RUN_PROJECT" ] && RUN_PROJECT=1
11 RUN_IN_FOREGROUND=0 11 [ -z "$COMMAND_ARGS" ] && COMMAND_ARGS=
12 RUN_WITHOUT_SCREEN=0 12 [ -z "$RUN_IN_FOREGROUND" ] && RUN_IN_FOREGROUND=1
13 SCREEN_NAME=Bela 13 [ -z "$RUN_WITHOUT_SCREEN" ] && RUN_WITHOUT_SCREEN=0
14 [ -z "$SCREEN_NAME" ] && SCREEN_NAME=Bela
14 15
15 function usage 16 function usage
16 { 17 {
17 THIS_SCRIPT=`basename "$0"` 18 THIS_SCRIPT=`basename "$0"`
18 echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [-c command-line-args] [-nfF] <directory-with-source-files>" 19 echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [-c command-line-args] [-nfF] <directory-with-source-files>"