summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>2014-07-24 11:39:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-25 15:33:34 +0100
commit38d50331acbc1e279449ae6b313ff0116b6c44e8 (patch)
tree1bc5f22b46e4515174eb914d97e140f816375569
parent6a14db407d471e717f41342ac0700e6a383c32c3 (diff)
downloadopenembedded-core-contrib-38d50331acbc1e279449ae6b313ff0116b6c44e8.tar.gz
openembedded-core-contrib-38d50331acbc1e279449ae6b313ff0116b6c44e8.tar.bz2
openembedded-core-contrib-38d50331acbc1e279449ae6b313ff0116b6c44e8.zip
autotools.bbclass: Enhance sed regexp to avoid extra subshell
head -n1 can be done using sed. Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/autotools.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 19edc54f6d..afca760804 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -195,7 +195,7 @@ autotools_do_configure() {
else
acpaths="${acpaths}"
fi
- AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
+ AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]\+$//};q'`
automake --version
echo "AUTOV is $AUTOV"
if [ -d ${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV ]; then