1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-21 09:34:19 +03:00

build: Add 'make printversion' to provide version string

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15497

Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Christof Schmitt 2013-09-12 16:11:34 -07:00 committed by Andrew Bartlett
parent 53ff61bbdd
commit e2ace2d613
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,10 @@ distcheck:
touch .tmplock
WAFLOCK=.tmplock $(WAF) distcheck
printversion:
touch .tmplock
WAFLOCK=.tmplock $(WAF) printversion
clean:
$(WAF) clean

View File

@ -516,6 +516,11 @@ def distcheck():
'''test that distribution tarball builds and installs'''
samba_version.load_version(env=None)
def printversion(ctx):
'''print version'''
ver = samba_version.load_version(env=None)
print('Samba Version: ' + ver.STRING_WITH_NICKNAME)
def wildcard_cmd(cmd):
'''called on a unknown command'''
from samba_wildcard import run_named_build_task