Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-04-11 23:04:59 +0400
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-04-11 23:04:59 +0400
commite0d794b31eb9cd71b4e30927af4bc227a680c61b (patch)
treed2cb280893bfe6cad14bf0204f71ad66552e68ae /release/getversion.py
parent3f98b7ac35cbac648face4334402e1c3b707ed0c (diff)
Slight improvements in release creation.
Version string is compatible with all previous releases, but report subversion if not 0. Keep distribution dir so you can run from there without needed of unpack, and make messages and cmds be in sync.
Diffstat (limited to 'release/getversion.py')
-rwxr-xr-xrelease/getversion.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/release/getversion.py b/release/getversion.py
index a64a6189b6f..fd52129bf4a 100755
--- a/release/getversion.py
+++ b/release/getversion.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+# -*- mode: python; tab-width: 4; indent-tabs-mode: t; -*-
+# vim: tabstop=4
+# $Id#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
@@ -18,9 +21,9 @@
# The Original Code is Copyright (C) 2008 by the Blender Foundation
# All rights reserved.
#
-# The Original Code is: all of this file.
+# The Original Code is: see repository.
#
-# Contributor(s): none yet.
+# Contributor(s): see repository.
#
import sys, os, re
@@ -49,7 +52,11 @@ for line in infile.readlines():
infile.close()
+# Major was changed to float, but minor is still a string
if minor and major:
- print str(major)+"."+minor
+ if minor == "0":
+ print "%.2f" % major
+ else:
+ print "%.2f.%s" % (major, minor)
else:
print "unknownversion"