On Fri, May 2, 2014 at 2:00 AM, Radek Dostal < radek.dos...@streamunlimited.com> wrote:
> - sed -i -e s:${D}::g "$i" > + # only modify file if it contains path to avoid recompilation > on the target > + if (grep "${D}" "$i") >/dev/null 2>&1 If you're to go this route, I'd suggest: if grep -q "${D}" "$i"; then Avoids the unnecessary re-directions, and unnecessary sub-shell. -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core