summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2012-06-14 19:07:23 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-07-03 15:32:09 +0200
commitf48f65e695da57cb12e68a5b1d82d05874863344 (patch)
tree3a646f356ea6511086c9d978827e7b36b9ae711b /wscript
parentec3d1f09fa7ad50297e832cd25e2859cafbf00c5 (diff)
downloadsamba-f48f65e695da57cb12e68a5b1d82d05874863344.tar.gz
samba-f48f65e695da57cb12e68a5b1d82d05874863344.tar.bz2
samba-f48f65e695da57cb12e68a5b1d82d05874863344.zip
wafsamba: samba_version: add samba version suffix to vcs_fields
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'wscript')
-rwxr-xr-xwscript13
1 files changed, 12 insertions, 1 deletions
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():