mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
*.bbclass (shell): avoid pipe with sed
Replace: cat <file> | sed -e xxx By: sed -e xxx <file> (From OE-Core rev: e2026f5d32ac05396615224ac9ec927439e7e6b4) 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:
committed by
Richard Purdie
parent
5ae4aadcae
commit
77790c43b1
@@ -42,11 +42,9 @@ sip_do_generate() {
|
||||
echo "calling 'sip4 -I sip -I ${STAGING_SIPDIR} ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.pro.in sip/${module}/${module}mod.sip'"
|
||||
sip4 -I ${STAGING_SIPDIR} -I sip ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.sbf \
|
||||
sip/${module}/${module}mod.sip || die "Error calling sip on ${module}"
|
||||
cat ${module}/${module}.sbf | sed s,target,TARGET, \
|
||||
| sed s,sources,SOURCES, \
|
||||
| sed s,headers,HEADERS, \
|
||||
| sed s,"moc_HEADERS =","HEADERS +=", \
|
||||
>${module}/${module}.pro
|
||||
sed -e 's,target,TARGET,' -e 's,sources,SOURCES,' -e 's,headers,HEADERS,' \
|
||||
${module}/${module}.sbf | sed s,"moc_HEADERS =","HEADERS +=", \
|
||||
>${module}/${module}.pro
|
||||
echo "TEMPLATE=lib" >>${module}/${module}.pro
|
||||
[ "${module}" = "qt" ] && echo "" >>${module}/${module}.pro
|
||||
[ "${module}" = "qtcanvas" ] && echo "" >>${module}/${module}.pro
|
||||
|
||||
Reference in New Issue
Block a user