# HG changeset patch # User Giulio Moro # Date 1463497655 -3600 # Node ID 4b3ae93ab1025569cd083080e03c98c0a348bba6 # Parent a14fe8b0f588be320f2ccae1b089faa832564b5d build_project.sh allows to pass a custom project name diff -r a14fe8b0f588 -r 4b3ae93ab102 scripts/build_project.sh --- 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