summaryrefslogtreecommitdiffstats
path: root/meta/classes/sip.bbclass
diff options
context:
space:
mode:
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>2014-05-06 14:17:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 13:00:33 +0100
commit77790c43b1bfdb0ca9e43ca3878d9153962e47f2 (patch)
tree4d47320e74b9c09341f91fc8f37b87a91827aea7 /meta/classes/sip.bbclass
parent5ae4aadcae85c129aef6dd6ce2dcdd55e8ae9053 (diff)
downloadpoky-77790c43b1bfdb0ca9e43ca3878d9153962e47f2.tar.gz
*.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>
Diffstat (limited to 'meta/classes/sip.bbclass')
-rw-r--r--meta/classes/sip.bbclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/sip.bbclass b/meta/classes/sip.bbclass
index 711f851593..6ed2a13bda 100644
--- a/meta/classes/sip.bbclass
+++ b/meta/classes/sip.bbclass
@@ -42,11 +42,9 @@ sip_do_generate() {
42 echo "calling 'sip4 -I sip -I ${STAGING_SIPDIR} ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.pro.in sip/${module}/${module}mod.sip'" 42 echo "calling 'sip4 -I sip -I ${STAGING_SIPDIR} ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.pro.in sip/${module}/${module}mod.sip'"
43 sip4 -I ${STAGING_SIPDIR} -I sip ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.sbf \ 43 sip4 -I ${STAGING_SIPDIR} -I sip ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.sbf \
44 sip/${module}/${module}mod.sip || die "Error calling sip on ${module}" 44 sip/${module}/${module}mod.sip || die "Error calling sip on ${module}"
45 cat ${module}/${module}.sbf | sed s,target,TARGET, \ 45 sed -e 's,target,TARGET,' -e 's,sources,SOURCES,' -e 's,headers,HEADERS,' \
46 | sed s,sources,SOURCES, \ 46 ${module}/${module}.sbf | sed s,"moc_HEADERS =","HEADERS +=", \
47 | sed s,headers,HEADERS, \ 47 >${module}/${module}.pro
48 | sed s,"moc_HEADERS =","HEADERS +=", \
49 >${module}/${module}.pro
50 echo "TEMPLATE=lib" >>${module}/${module}.pro 48 echo "TEMPLATE=lib" >>${module}/${module}.pro
51 [ "${module}" = "qt" ] && echo "" >>${module}/${module}.pro 49 [ "${module}" = "qt" ] && echo "" >>${module}/${module}.pro
52 [ "${module}" = "qtcanvas" ] && echo "" >>${module}/${module}.pro 50 [ "${module}" = "qtcanvas" ] && echo "" >>${module}/${module}.pro