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>
quicktest:
$(WAF) test --quick $(TEST_OPTIONS)
+show_version:
+ @touch .tmplock
+ @WAFLOCK=.tmplock $(WAF) show_version
+
dist:
touch .tmplock
WAFLOCK=.tmplock $(WAF) dist
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'