diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-07 13:29:41 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:41 +1000 |
commit | ca56fc286766098271182b4cd5f2bf1eb6e005c1 (patch) | |
tree | 5d168c33f137b692d07d794224ceb52c8009c5c2 | |
parent | 5b9ca48d81a92a1b6c079654ce71038ab5f844b4 (diff) | |
download | samba-ca56fc286766098271182b4cd5f2bf1eb6e005c1.tar.gz samba-ca56fc286766098271182b4cd5f2bf1eb6e005c1.tar.bz2 samba-ca56fc286766098271182b4cd5f2bf1eb6e005c1.zip |
useful tools for finding missing configure steps
-rwxr-xr-x | buildtools/compare_config_h.sh | 13 | ||||
-rwxr-xr-x | buildtools/compare_generated.sh | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/buildtools/compare_config_h.sh b/buildtools/compare_config_h.sh new file mode 100755 index 0000000000..09f47b2b99 --- /dev/null +++ b/buildtools/compare_config_h.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# compare the generated config.h from a waf build with existing samba +# build + +grep ^.define bin/default/source4/include/config.h | sort > waf-config.h +grep ^.define $HOME/samba_old/source4/include/config.h | sort > old-config.h + +comm -23 old-config.h waf-config.h + +echo + +diff -u old-config.h waf-config.h diff --git a/buildtools/compare_generated.sh b/buildtools/compare_generated.sh new file mode 100755 index 0000000000..98504a868a --- /dev/null +++ b/buildtools/compare_generated.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# compare the generated files from a waf + + +gen_files=$(cd bin/default && find . -type f -name '*.[ch]') + +for f in $gen_files; do + echo + echo "===================================================" + echo "Comparing generated file $f" + diff -u -b $HOME/samba_old/$f bin/default/$f +done + |