summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xctdb/wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index 97cd84c255..969c034c51 100755
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -202,6 +202,15 @@ def build(bld):
dep_vars=['VERSION'])
t.env.VERSION = VERSION
+ version_h = samba_utils.os_path_relpath(os.path.join(Options.launch_dir,
+ "version.h"),
+ bld.curdir)
+ t.bld.SAMBA_GENERATOR('ctdb-samba-version-header',
+ target=version_h,
+ rule='printf "#include \\"ctdb_version.h\\" \\n#define SAMBA_VERSION_STRING CTDB_VERSION_STRING\\n" > ${TGT}',
+ dep_vars=['VERSION'])
+ t.env.VERSION = VERSION
+
bld.RECURSE('lib/replace')
if bld.CHECK_FOR_THIRD_PARTY():
bld.RECURSE('third_party/popt')