Skip to content

Commit e2ace2d

Browse files
chsabartlet
authored andcommitted
build: Add 'make printversion' to provide version string
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15497 Signed-off-by: Christof Schmitt <[email protected]> Reviewed-by: Andrew Bartlett <[email protected]>
1 parent 53ff61b commit e2ace2d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ distcheck:
6767
touch .tmplock
6868
WAFLOCK=.tmplock $(WAF) distcheck
6969

70+
printversion:
71+
touch .tmplock
72+
WAFLOCK=.tmplock $(WAF) printversion
73+
7074
clean:
7175
$(WAF) clean
7276

wscript

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,11 @@ def distcheck():
516516
'''test that distribution tarball builds and installs'''
517517
samba_version.load_version(env=None)
518518

519+
def printversion(ctx):
520+
'''print version'''
521+
ver = samba_version.load_version(env=None)
522+
print('Samba Version: ' + ver.STRING_WITH_NICKNAME)
523+
519524
def wildcard_cmd(cmd):
520525
'''called on a unknown command'''
521526
from samba_wildcard import run_named_build_task

0 commit comments

Comments
 (0)