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:
parent
53ff61bbdd
commit
e2ace2d613
4
Makefile
4
Makefile
@ -67,6 +67,10 @@ distcheck:
|
||||
touch .tmplock
|
||||
WAFLOCK=.tmplock $(WAF) distcheck
|
||||
|
||||
printversion:
|
||||
touch .tmplock
|
||||
WAFLOCK=.tmplock $(WAF) printversion
|
||||
|
||||
clean:
|
||||
$(WAF) clean
|
||||
|
||||
|
5
wscript
5
wscript
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user