diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-19 13:28:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-19 13:28:07 +0000 |
commit | bc284a1fde0acaadb4c88bee73f9a4d85323196b (patch) | |
tree | 69f944e9c0c24c32021aed5cbd1df41883811e05 /nuttx/tools | |
parent | 85b0e03f7313fb9b2e59e510c31d8afb01912c4e (diff) | |
download | px4-nuttx-bc284a1fde0acaadb4c88bee73f9a4d85323196b.tar.gz px4-nuttx-bc284a1fde0acaadb4c88bee73f9a4d85323196b.tar.bz2 px4-nuttx-bc284a1fde0acaadb4c88bee73f9a4d85323196b.zip |
Use = instead of / for delimiter in appconfig files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3396 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools')
-rwxr-xr-x | nuttx/tools/configure.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/nuttx/tools/configure.sh b/nuttx/tools/configure.sh index a68561d82..e20b1cf6b 100755 --- a/nuttx/tools/configure.sh +++ b/nuttx/tools/configure.sh @@ -1,7 +1,7 @@ #!/bin/bash # configure.sh # -# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. +# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <spudmonkey@racsa.co.cr> # # Redistribution and use in source and binary forms, with or without @@ -34,7 +34,16 @@ WD=`pwd` TOPDIR="${WD}/.." -USAGE="${0} [-d] [-a <app-dir>] <board-name>" +USAGE=" + +USAGE: ${0} [-d] [-a <app-dir>] <board-name>/<config-name> + +Where: + <board-name> is the name of the board in the configs directory + <config-name> is the name of the board configuration sub-directory + <add-dir> is the path to the apps/ directory, relative to the nuttx directory + +" # Parse command arguments @@ -47,7 +56,7 @@ while [ ! -z "$1" ]; do set -x ;; -h ) - echo "$usage" + echo "$USAGE" exit 0 ;; -a ) @@ -110,7 +119,7 @@ fi if [ -z "${appdir}" ]; then if [ -d "${TOPDIR}/../apps" ]; then - appdir="${TOPDIR}/../apps" + appdir="../apps" fi fi @@ -130,7 +139,7 @@ if [ ! -z "${appdir}" ]; then if [ ! -r "${configpath}/appconfig" ]; then echo "NOTE: No readable appconfig file found in ${configpath}" else - cp -f "${configpath}/appconfig" "${appdir}/.config" || \ + cp -f "${configpath}/appconfig" "${TOPDIR}/${appdir}/.config" || \ { echo "Failed to copy ${configpath}/appconfig" ; exit 10 ; } echo "" >> "${TOPDIR}/.config" |