From b794cbbdca28989ca357cec44e4d2df5e9fb67bd Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 28 Apr 2012 00:52:48 +0200 Subject: 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 --- tools/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 elif [ -n "$(echo $cpp_defines | grep -w __arm__)" ]; then arch="arm" # cpp defines like "#define __ARM_ARCH_4TE__ 1" (where we want to extract the 4) - arch_version="$(echo $cpp_defines | sed s,\ ,\\n,g | grep __ARM_ARCH | sed -e 's,.*\([0-9]\).*,\1,')" + arch_version="$(echo $cpp_defines | tr ' ' '\012' | grep __ARM_ARCH | sed -e 's,.*\([0-9]\).*,\1,')" elif [ -n "$(echo $cpp_defines | grep -w __mips__)" ]; then arch="mips" # FIXME: autodetect version (32 or 64) elif [ -n "$(echo $cpp_defines | grep -w __i386__)" ]; then -- cgit v1.2.3