summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-04-28 00:52:48 +0200
committerFrank Gevaerts <frank@gevaerts.be>2012-04-28 00:55:07 +0200
commitb794cbbdca28989ca357cec44e4d2df5e9fb67bd (patch)
tree7b7e46e91c3101be273dbe988c60d5eb662f1f87 /tools/configure
parent0048e5b8ce32fb03fd8e872035c936966cd758a5 (diff)
downloadrockbox-b794cbbdca28989ca357cec44e4d2df5e9fb67bd.tar.gz
rockbox-b794cbbdca28989ca357cec44e4d2df5e9fb67bd.zip
Replace a \n-using sed expression with a more compatible tr
BSD sed doesn't handle \n the way GNU sed does, and in this case the substitution is trivially done using tr anyway, so use tr. Change-Id: Iedb459d871ae6758d76352225e91dd4dc4717a53
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index 23731530d1..d09f43c611 100755
--- a/tools/configure
+++ b/tools/configure
@@ -3648,7 +3648,7 @@ if [ -z "$arch" ]; then
3648 elif [ -n "$(echo $cpp_defines | grep -w __arm__)" ]; then 3648 elif [ -n "$(echo $cpp_defines | grep -w __arm__)" ]; then
3649 arch="arm" 3649 arch="arm"
3650 # cpp defines like "#define __ARM_ARCH_4TE__ 1" (where we want to extract the 4) 3650 # cpp defines like "#define __ARM_ARCH_4TE__ 1" (where we want to extract the 4)
3651 arch_version="$(echo $cpp_defines | sed s,\ ,\\n,g | grep __ARM_ARCH | sed -e 's,.*\([0-9]\).*,\1,')" 3651 arch_version="$(echo $cpp_defines | tr ' ' '\012' | grep __ARM_ARCH | sed -e 's,.*\([0-9]\).*,\1,')"
3652 elif [ -n "$(echo $cpp_defines | grep -w __mips__)" ]; then 3652 elif [ -n "$(echo $cpp_defines | grep -w __mips__)" ]; then
3653 arch="mips" # FIXME: autodetect version (32 or 64) 3653 arch="mips" # FIXME: autodetect version (32 or 64)
3654 elif [ -n "$(echo $cpp_defines | grep -w __i386__)" ]; then 3654 elif [ -n "$(echo $cpp_defines | grep -w __i386__)" ]; then