Mercurial > hg > beaglert
changeset 277:4b3ae93ab102 prerelease
build_project.sh allows to pass a custom project name
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 17 May 2016 16:07:35 +0100 |
parents | a14fe8b0f588 |
children | 3c3d042dad12 |
files | scripts/build_project.sh |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/build_project.sh Tue May 17 16:04:35 2016 +0100 +++ b/scripts/build_project.sh Tue May 17 16:07:35 2016 +0100 @@ -13,7 +13,8 @@ [ -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_PROJECT_NAME" ] && BBB_PROJECT_NAME="scriptUploadedProject" +[ -z "$BBB_DEFAULT_PROJECT_NAME" ] && BBB_DEFAULT_PROJECT_NAME="scriptUploadedProject" +[ -z "$BBB_PROJECT_NAME" ] && BBB_PROJECT_NAME=$BBB_DEFAULT_PROJECT_NAME function usage { @@ -39,18 +40,20 @@ OPTIND=1 -while getopts "b:c:nfFh" opt; do +while getopts "b:c:nfFhp:" opt; do case $opt in b) BBB_BELA_HOME=$OPTARG ;; c) COMMAND_ARGS=$OPTARG ;; f) RUN_IN_FOREGROUND=0 - ;; + ;; F) RUN_WITHOUT_SCREEN=1 - ;; + ;; n) RUN_PROJECT=0 ;; + p) BBB_PROJECT_NAME=$OPTARG + ;; h|\?) usage exit 1 esac