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:34:00 +0100
commit5a7f510a68d449e0ae1d972ad2d78fb9853665b5 (patch)
tree33588ee73ce39f8f6b88d799eaa2bfd23f525afd
parent984f03457adced77482f9c3f0b95349c9b17c7e5 (diff)
downloadpoky-5a7f510a68d449e0ae1d972ad2d78fb9853665b5.tar.gz
autotools.bbclass: Enhance sed regexp to avoid extra subshell
head -n1 can be done using sed. (From OE-Core rev: 38d50331acbc1e279449ae6b313ff0116b6c44e8) 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() {
195 else 195 else
196 acpaths="${acpaths}" 196 acpaths="${acpaths}"
197 fi 197 fi
198 AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"` 198 AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]\+$//};q'`
199 automake --version 199 automake --version
200 echo "AUTOV is $AUTOV" 200 echo "AUTOV is $AUTOV"
201 if [ -d ${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV ]; then 201 if [ -d ${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV ]; then