/[papo]/gnue/integrator/src/__init__.py
ViewVC logotype

Diff of /gnue/integrator/src/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by styxman, Fri Nov 8 16:57:51 2002 UTC revision 1.2 by styxman, Thu Nov 14 22:22:33 2002 UTC
# Line 33  Line 33 
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)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26