update-waf.sh: make mktemp happy by including anything Xes.
[samba.git] / buildtools / compare_config_h3.sh
1 #!/bin/sh
2
3 # compare the generated config.h from a waf build with existing samba
4 # build
5
6 OLD_CONFIG=source3/include/autoconf/config.h
7 if test "x$1" != "x" ; then
8         OLD_CONFIG=$1
9 fi
10
11 NEW_CONFIG=bin/default/include/config.h
12 if test "x$2" != "x" ; then
13         NEW_CONFIG=$2
14 fi
15
16 EXCEPTIONS=`dirname $0`/compare_config_h3-exceptions.grep
17
18 if test "x$DIFF" = "x" ; then
19         DIFF="comm -23"
20 fi
21
22 grep "^.define" $NEW_CONFIG | grep -v -f $EXCEPTIONS | sort > waf-config.h
23 grep "^.define" $OLD_CONFIG | grep -v -f $EXCEPTIONS | sort > old-config.h
24
25 $DIFF old-config.h waf-config.h
26 rm -f old-config.h waf-config.h
27