summaryrefslogtreecommitdiff
path: root/buildtools/compare_config_h.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 13:29:41 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:41 +1000
commitca56fc286766098271182b4cd5f2bf1eb6e005c1 (patch)
tree5d168c33f137b692d07d794224ceb52c8009c5c2 /buildtools/compare_config_h.sh
parent5b9ca48d81a92a1b6c079654ce71038ab5f844b4 (diff)
downloadsamba-ca56fc286766098271182b4cd5f2bf1eb6e005c1.tar.gz
samba-ca56fc286766098271182b4cd5f2bf1eb6e005c1.tar.bz2
samba-ca56fc286766098271182b4cd5f2bf1eb6e005c1.zip
useful tools for finding missing configure steps
Diffstat (limited to 'buildtools/compare_config_h.sh')
-rwxr-xr-xbuildtools/compare_config_h.sh13
1 files changed, 13 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