useful tools for finding missing configure steps
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 02:29:41 +0000 (13:29 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:41 +0000 (20:26 +1000)
buildtools/compare_config_h.sh [new file with mode: 0755]
buildtools/compare_generated.sh [new file with mode: 0755]

diff --git a/buildtools/compare_config_h.sh b/buildtools/compare_config_h.sh
new file mode 100755 (executable)
index 0000000..09f47b2
--- /dev/null
@@ -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 (executable)
index 0000000..98504a8
--- /dev/null
@@ -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
+