Protect open_and_sort_dir() from the directory changing size.
[Samba.git] / buildtools / compare_config_h4.sh
blobb78b36fdd0fa4bae41cfc675c4677ef5f076b22c
1 #!/bin/sh
3 # compare the generated config.h from a waf build with existing samba
4 # build
6 grep "^.define" bin/default/source4/include/config.h | sort > waf-config.h
7 grep "^.define" $HOME/samba_old/source4/include/config.h | sort > old-config.h
9 comm -23 old-config.h waf-config.h
11 #echo
12 #diff -u old-config.h waf-config.h