libcli/echo: validate the message length
[Samba.git] / buildtools / compare_config_h3.sh
blob45be1ec34410eb625122f5257fe008a9789b361e
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 | egrep -v -f $EXCEPTIONS | sort > waf-config.h
23 grep "^.define" $OLD_CONFIG | egrep -v -f $EXCEPTIONS | sort > old-config.h
25 $DIFF old-config.h waf-config.h
26 rm -f old-config.h waf-config.h