From af82dcae302934c4ea9c14a5932a4647444f0a63 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 2 Apr 2011 00:33:52 +0200 Subject: s3:waf:compare_config_h3.sh: make diff tool configurable as env var "DIFF" --- buildtools/compare_config_h3.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'buildtools') diff --git a/buildtools/compare_config_h3.sh b/buildtools/compare_config_h3.sh index 00f84c1540..294af30930 100755 --- a/buildtools/compare_config_h3.sh +++ b/buildtools/compare_config_h3.sh @@ -8,10 +8,12 @@ if test "x$1" != "x" ; then OLD_CONFIG=$1 fi +if test "x$DIFF" = "x" ; then + DIFF="comm -23" +fi + grep "^.define" bin/default/source3/include/config.h | sort > waf-config.h grep "^.define" $OLD_CONFIG | sort > old-config.h -comm -23 old-config.h waf-config.h +$DIFF old-config.h waf-config.h -#echo -#diff -u old-config.h waf-config.h -- cgit