mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +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
|
touch .tmplock
|
||||||
WAFLOCK=.tmplock $(WAF) distcheck
|
WAFLOCK=.tmplock $(WAF) distcheck
|
||||||
|
|
||||||
|
printversion:
|
||||||
|
touch .tmplock
|
||||||
|
WAFLOCK=.tmplock $(WAF) printversion
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(WAF) clean
|
$(WAF) clean
|
||||||
|
|
||||||
|
5
wscript
5
wscript
@ -516,6 +516,11 @@ def distcheck():
|
|||||||
'''test that distribution tarball builds and installs'''
|
'''test that distribution tarball builds and installs'''
|
||||||
samba_version.load_version(env=None)
|
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):
|
def wildcard_cmd(cmd):
|
||||||
'''called on a unknown command'''
|
'''called on a unknown command'''
|
||||||
from samba_wildcard import run_named_build_task
|
from samba_wildcard import run_named_build_task
|
||||||
|
Loading…
Reference in New Issue
Block a user