summaryrefslogtreecommitdiff
path: root/ctdb/wscript
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-06-23 12:55:19 +1000
committerMartin Schwenke <martins@samba.org>2014-06-24 07:23:13 +0200
commit8cd48c6b1cbdc7b2d151985a044e0bff12269a1a (patch)
tree03985edf0ae89c18a5f1e1cb613a0314e1bc3011 /ctdb/wscript
parent113c5799d4df69a95f37f23a374d9f313f57b5ec (diff)
downloadsamba-8cd48c6b1cbdc7b2d151985a044e0bff12269a1a.tar.gz
ctdb-build: Add special target to get build version
This avoids the need to build a tarball to get version information. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/wscript')
-rwxr-xr-xctdb/wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index f69bf580f71..afd40d3399e 100755
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -523,8 +523,10 @@ def autotest(ctx):
cmd = 'LD_PRELOAD=bin/shared/libsocket-wrapper.so tests/run_tests.sh -e -S -C'
samba_utils.RUN_COMMAND(cmd)
-def dist():
+def show_version(ctx):
+ print VERSION
+def dist():
samba_dist.DIST_FILES('VERSION:VERSION', extend=True)
t = 'include/ctdb_version.h'