summaryrefslogtreecommitdiff
path: root/ctdb
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
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')
-rw-r--r--ctdb/Makefile4
-rwxr-xr-xctdb/wscript4
2 files changed, 7 insertions, 1 deletions
diff --git a/ctdb/Makefile b/ctdb/Makefile
index 9ffce81eb32..4d2f059916a 100644
--- a/ctdb/Makefile
+++ b/ctdb/Makefile
@@ -23,6 +23,10 @@ autotest:
quicktest:
$(WAF) test --quick $(TEST_OPTIONS)
+show_version:
+ @touch .tmplock
+ @WAFLOCK=.tmplock $(WAF) show_version
+
dist:
touch .tmplock
WAFLOCK=.tmplock $(WAF) dist
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'