diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-30 19:28:46 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-30 19:28:46 -0600 |
commit | 0af8457b422a90f1847a65797ffc1bffb0ae1ed0 (patch) | |
tree | 1846701af33d1f3bc9e0d3f4220028b2d7520bd0 | |
parent | 7bbbe7e7b3159e2e021bae476099f40cf9cac3fb (diff) | |
download | px4-nuttx-0af8457b422a90f1847a65797ffc1bffb0ae1ed0.tar.gz px4-nuttx-0af8457b422a90f1847a65797ffc1bffb0ae1ed0.tar.bz2 px4-nuttx-0af8457b422a90f1847a65797ffc1bffb0ae1ed0.zip |
Fix some funny 'cut' results
-rw-r--r-- | nuttx/ChangeLog | 2 | ||||
-rwxr-xr-x | nuttx/tools/define.sh | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 5f94183bd..46b235351 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -5686,4 +5686,6 @@ From Carvalho de Assis. (2013-9-30). * net/net_sendfile: The high performance sendfile logic is now functional. From Max Holtzberg (2013-9-30). + * tools/define.sh: 'cut' long because as it once did. Script + adapted to observed behavior (2013-9-30). diff --git a/nuttx/tools/define.sh b/nuttx/tools/define.sh index dc982cc64..ae2374118 100755 --- a/nuttx/tools/define.sh +++ b/nuttx/tools/define.sh @@ -170,9 +170,13 @@ unset response for vardef in $varlist; do varname=`echo $vardef | cut -d'=' -f1` - varvalue=`echo $vardef | cut -d'=' -f2` + if [ "X$varname" != "X$vardef" ]; then + varvalue=`echo $vardef | cut -d'=' -f2` + else + unset varvalue + fi - # Handle the output depending on if there is a value for the variable or not + # Handle the output depending on if there is a value for the variable or not if [ -z "$varvalue" ]; then |