5 echo "Usage: $0 <target1> <target2>"
6 echo "Highlight differences between Mesa configs"
8 echo " $0 linux linux-x86"
18 -h|--help) usage; exit 0;;
21 [ $# -lt 2 ] && die 2 targets needed. See $0 --help
25 topdir=$(cd "`dirname $0`"/..; pwd)
28 [ -f "./configs/$target1" ] || die Missing configs/$target1
29 [ -f "./configs/$target2" ] || die Missing configs/$target2
31 trap 'rm -f "$t1" "$t2"' 0
36 make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t1
38 include \$(TOP)/configs/$target1
42 make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t2
44 include \$(TOP)/configs/$target2
48 diff -pu -I'^#' $t1 $t2