Commit f120cfa1 authored by marcocle's avatar marcocle
Browse files

Fixed bug #77806: createProjVersHeader breaks with Atlas style tags

https://savannah.cern.ch/bugs/?77806


git-svn-id: svn+ssh://svn.cern.ch/reps/gaudi/Gaudi/trunk@6419 53ecefc3-a64d-0410-9bdf-b8581fa3287e
parent 5183c219
package GaudiPolicy
package manager: Marco Clemencic
! 2011-02-04 - Charles Leggett
- Fixed bug #77806: createProjVersHeader breaks with Atlas style tags
allow Atlas style GaudiPKJ-XX-YY-ZZ tags
============================= GaudiPolicy v11r0 ==============================
! 2011-01-17 - Marco Clemencic
- Fixed a small problem with the recent change in the nmake fragments
......
......@@ -7,8 +7,9 @@ def main():
project, version, outputfile = sys.argv[1:]
print "Creating %s for %s %s"%(outputfile, project, version)
m = re.match("v([0-9]+)r([0-9]+)(?:p[0-9])?",version)
majver, minver = [ int(x) for x in m.groups() ]
m = re.match("(v|([A-Za-z]+\-))(?P<maj_ver>[0-9]+)(r|\-)(?P<min_ver>[0-9]+)(?:(p|\-)(?P<pat_ver>[0-9]+))?",version)
majver = int(m.groupdict()['maj_ver'])
minver = int(m.groupdict()['min_ver'])
outdir = os.path.dirname(outputfile)
if not os.path.exists(outdir):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment