diff options
author | Martin Schwenke <martin@meltin.net> | 2014-08-25 13:28:30 +1000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-10-06 12:34:33 +0200 |
commit | 43266be94552fe0c364e12d3c44fb54e453c123a (patch) | |
tree | bd381f3854238c1db962c73a8c0d99bc45032fd8 /ctdb | |
parent | ba3e2ecf6728ecb83afbaccaed35d19e4e562806 (diff) | |
download | samba-43266be94552fe0c364e12d3c44fb54e453c123a.tar.gz |
ctdb-build: Add generation of Samba-style version.h
This is needed by fault.c.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/wscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ctdb/wscript b/ctdb/wscript index 97cd84c255d..969c034c518 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') |