diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2010-11-18 14:33:02 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-11-18 14:33:02 +0000 |
commit | 558362fa3491663ea9b8c0aac95965e3afcd44c0 (patch) | |
tree | eb26123a5fa302088afee17338df319bc10f85b8 | |
parent | 8c107bc9e4ac0378e6a6e6ee200e59b8c0c84960 (diff) |
Set locale to POSIX to avoid problems with invalid 8bit character
sequences.
Increase scanning speed.
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Patrick Georgi <patrick@georgi-clan.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6090 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | util/lint/lint-001-no-global-config-in-romstage | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage index 095cbcebab..3bb71f809f 100644 --- a/util/lint/lint-001-no-global-config-in-romstage +++ b/util/lint/lint-001-no-global-config-in-romstage @@ -1,7 +1,8 @@ #!/bin/sh DEFINES=`grep "#define" src/mainboard/*/*/romstage.c |sed 's,.*#define[\t ]\([^\t ]*\)[\t ].*,\1,' | grep -v "(" | sort -u` SCANBUCKET=`mktemp` -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 |