diff -r 42dda4375d79 wscript --- a/wscript Fri Dec 30 15:37:31 2011 +0000 +++ b/wscript Wed Jan 04 12:15:26 2012 +0000 @@ -70,8 +70,17 @@ # note: here we disable the VNUM for OSX since it causes problems (bug #1251) wutils.VNUM = None -if sys.platform != 'darwin' and re.match(r"^\d+\.\d+(\.\d+)?$", VERSION) is not None: - wutils.VNUM = VERSION +m = re.match(r"^(\d+)\.(\d+)(?:\.(\d+))?$", VERSION) +if m is not None: + MAJOR = int(m.group(1)) + MINOR = int(m.group(2)) + if m.group(3) is None: + MICRO = 0 + else: + MICRO = int(m.group(3)) +if sys.platform != 'darwin' and m is not None: + wutils.VNUM = "%02i%02i" % (MINOR, MICRO) + print wutils.VNUM # these variables are mandatory ('/' are converted automatically) top = '.'