1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Amitay Isaacs 2014-06-23 12:55:19 +10:00 committed by Martin Schwenke
parent 113c5799d4
commit 8cd48c6b1c
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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'