33 |
_version = (0,0,1) |
_version = (0,0,1) |
34 |
_release = 0 |
_release = 0 |
35 |
|
|
36 |
# Version will be of the form "1.1.2" if a release or "1.1.2a" if in CVS |
# Version will be of the form "1.1.2" if a release or "1.1.1.99" if in CVS |
37 |
VERSION= ("%s.%s.%s" % _version) + (not _release and 'a' or '') |
if _release: |
38 |
|
VERSION="%s.%s.%s" % _version |
39 |
|
else: |
40 |
|
_t = (("%08d" % (int("%02d%02d%02d00" % _version)-1) ).replace('99','') + '99') + '0000000' |
41 |
|
if _t[6:8] != '00': |
42 |
|
extra = '.99' |
43 |
|
else: |
44 |
|
extra = '' |
45 |
|
VERSION = "%s.%s.%s%s" % (int(_t[:2]), int(_t[2:4]), int(_t[4:6]), extra) |
46 |
|
|
47 |
# Hex Version will be an integer in which version 1.2.15 is represented |
# Hex Version will be an integer in which version 1.2.15 is represented |
48 |
# as 0x010215FF (for a release) or 0x01021500 (for a CVS snapshot) |
# as 0x010215FF (for a release) or 0x01021500 (for a CVS snapshot) |