From f48f65e695da57cb12e68a5b1d82d05874863344 Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Thu, 14 Jun 2012 19:07:23 +0200 Subject: wafsamba: samba_version: add samba version suffix to vcs_fields Signed-off-by: Andrew Bartlett --- wscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 0a7a85b997..1238eb6ae3 100755 --- a/wscript +++ b/wscript @@ -239,7 +239,18 @@ def wafdocs(ctx): def dist(): '''makes a tarball for distribution''' - samba_version.load_version(env=None) + sambaversion = samba_version.load_version(env=None) + + if sambaversion.IS_SNAPSHOT: + # write .distversion file and add to tar + f = '.distversion' + distversionf = open(f, 'w') + for field in sambaversion.vcs_fields: + distveroption = field + '=' + str(sambaversion.vcs_fields[field]) + distversionf.write(distveroption + '\n') + distversionf.close() + samba_dist.DIST_FILES('.distversion') + samba_dist.dist() def distcheck(): -- cgit