From 50b5b2b4ee7e75c5a01bbb9cd03fd51b765f2d22 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 18 Dec 2009 10:20:15 +0000 Subject: - speed up board comparison by only building abuild configs, not the whole target. - use a template for mktemp (fixes OSX error) - convert all numbers to hex to make comparison easier. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4982 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/compareboard/compareboard | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'util/compareboard') diff --git a/util/compareboard/compareboard b/util/compareboard/compareboard index 09cd32987d..17295675d2 100755 --- a/util/compareboard/compareboard +++ b/util/compareboard/compareboard @@ -16,7 +16,7 @@ done BOARDPATH=`echo $1 | sed s,/,_,g` -A=`mktemp` +A=`mktemp tmp.XXXXXXXXXX` rm -rf $A mkdir -p $A @@ -92,6 +92,15 @@ sed \ normalize $A/old.filtered > $A/old.normalized normalize $A/new.filtered > $A/new.normalized -diff -u $A/old.normalized $A/new.normalized |grep ^[+-][^+-]|sed -e "s,^+,p ," -e "s,^-,m ," |sort -k2,2 -k1,1 |sed -e "s,^p ,+," -e "s,^m ,-," +diff -u $A/old.normalized $A/new.normalized | \ + grep ^[+-][^+-] | \ + sed -e "s,^+,p ," -e "s,^-,m ," | \ + sort -k2,2 -k1,1 | \ + sed -e "s,^p ,+," -e "s,^m ,-," | \ + while read line; do + key=`echo $line|cut -f1 -d\=` + value=`echo $line|cut -f2 -d\= | tr -d \\;` + printf "%s = 0x%x\n" "$key" $value + done rm -rf $A -- cgit v1.2.3