diff options
author | Björn Baumbach <bb@sernet.de> | 2012-06-14 19:07:23 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-07-03 15:32:09 +0200 |
commit | f48f65e695da57cb12e68a5b1d82d05874863344 (patch) | |
tree | 3a646f356ea6511086c9d978827e7b36b9ae711b /wscript | |
parent | ec3d1f09fa7ad50297e832cd25e2859cafbf00c5 (diff) | |
download | samba-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-x | wscript | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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(): |