ldb: bump version due to header and internal implementation changes
[Samba.git] / buildtools / compare_config_h3.sh
bloba56dd2a147db9636c21ddd9f057c895d0adb3c35
1 #!/bin/sh
3 # compare the generated config.h from a waf build with existing samba
4 # build
6 OLD_CONFIG=source3/include/autoconf/config.h
7 if test "x$1" != "x" ; then
8 OLD_CONFIG=$1
9 fi
11 NEW_CONFIG=bin/default/include/config.h
12 if test "x$2" != "x" ; then
13 NEW_CONFIG=$2
16 EXCEPTIONS=`dirname $0`/compare_config_h3-exceptions.grep
18 if test "x$DIFF" = "x" ; then
19 DIFF="comm -23"
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
25 $DIFF old-config.h waf-config.h
26 rm -f old-config.h waf-config.h