mkproject: rewrite usage function using here-document

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-05-09 12:09:38 +02:00
parent 41faf402e2
commit 80f7892306
1 changed files with 9 additions and 5 deletions

View File

@ -29,12 +29,16 @@ CONFIGPATH="${SCRIPTPATH}/sources/meta-digi/sdk/config"
## Local functions ## Local functions
usage() { usage() {
printf "\nUsage: source ${SCRIPTNAME} [OPTIONS]\n cat <<EOF
-l list available platforms
-p <platform> select platform for the project
\n"
printf "Available platforms: ${AVAILABLE_PLATFORMS}\n\n" Usage: source ${SCRIPTNAME} [OPTIONS]
-l list available platforms
-p <platform> select platform for the project
Available platforms: ${AVAILABLE_PLATFORMS}
EOF
} }
error() { error() {