the output message from grep. The output message could change
depending on the LOCALE which would break the current test. Make it
DEPEND on grep-native to ensure we get the gnu version of grep which
is needed for -I to work. As per bug #1439.
MAINTAINER="David Karlstrom <daka@thg.se>"
+# We need gnugrep (for -I)
+DEPENDS_append += " grep-native"
+
require perl.inc
SRC_URI += "file://config.sh-armeb-linux \
sed -i -e "s%/usr/include/%${STAGING_INCDIR}/%g" config.sh-${TARGET_ARCH}-${TARGET_OS}
#These are strewn all over the source tree
- for foo in `grep -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | grep -v "^Binary file .* matches$" | cut -f 1 -d ":"` ; do
+ for foo in `grep -I -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | cut -f 1 -d ":"` ; do
echo Fixing: $foo
sed -e "s%/usr/include/%${STAGING_INCDIR}/%g" -i $foo
done