[coreboot] [commit] r6090 - trunk/util/lint

repository service svn at coreboot.org
Thu Nov 18 15:33:03 CET 2010

Author: oxygene
Date: Thu Nov 18 15:33:02 2010
New Revision: 6090
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6090

Set locale to POSIX to avoid problems with invalid 8bit character
Increase scanning speed.

Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
Acked-by: Patrick Georgi <patrick at georgi-clan.de>


Modified: trunk/util/lint/lint-001-no-global-config-in-romstage
--- trunk/util/lint/lint-001-no-global-config-in-romstage	Thu Nov 18 12:36:16 2010	(r6089)
+++ trunk/util/lint/lint-001-no-global-config-in-romstage	Thu Nov 18 15:33:02 2010	(r6090)
@@ -1,7 +1,8 @@
 DEFINES=`grep "#define" src/mainboard/*/*/romstage.c |sed 's,.*#define[\t ]\([^\t ]*\)[\t ].*,\1,' | grep -v "(" | sort -u`
-find src -name .svn -type d -prune -o -name mainboard -type d -prune -o -name examples -type d -prune -o -type f -exec sed -f `dirname $0`/remccoms3.sed {} + > $SCANBUCKET
+LC_ALL=C export LC_ALL
+find src -name .svn -type d -prune -o -name mainboard -type d -prune -o -name examples -type d -prune -o -type f -exec sed -nf `dirname $0`/remccoms3.sed {} + > $SCANBUCKET
 for define in $DEFINES; do
 	if [ `egrep -c "([^_A-Za-z0-9]$define[^_A-Za-z0-9]|^$define[^_A-Za-z0-9]|[^_A-Za-z0-9]$define\$)" $SCANBUCKET` -gt 0 ]; then

More information about the coreboot mailing list