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>
This commit is contained in:
parent
984f03457a
commit
5a7f510a68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue