summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildtools/compare_config_h.sh13
-rwxr-xr-xbuildtools/compare_generated.sh14
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
+