s3:waf:compare_config_h3.sh: specify autoconf-config.h as commandline parameter
[ira/wip.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=$HOME/samba_old/source3/include/config.h
7 if test "x$1" != "x" ; then
8         OLD_CONFIG=$1
9 fi
10
11 grep "^.define" bin/default/source3/include/config.h | sort > waf-config.h
12 grep "^.define" $OLD_CONFIG | sort > old-config.h
13
14 comm -23 old-config.h waf-config.h
15
16 #echo
17 #diff -u old-config.h waf-config.h