142 logging.basicConfig(level=logging.DEBUG)
143 os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
145 for l
in open(
'toolchain.cmake'):
146 m = re.match(
r'^\s*set\(\s*heptools_version\s+(\S*)\s*\)', l)
148 HEPToolsVers = m.group(1)
149 print(
"Using HEPTools", HEPToolsVers)
152 logging.error(
'Cannot find HEPTools version')
157 for dirpath, dirnames, filenames
in os.walk(os.curdir):
158 if 'CMakeLists.txt' in filenames
and dirpath != os.curdir:
163 dirname
for dirname
in dirnames
164 if (
not dirname.startswith(
'build.')
and dirname !=
'cmake' 171 old_version = latest_tag.split(
'_')[-1]
172 new_version = raw_input((
"The old version of the project is %s, " 173 "which is the new one? ") % old_version)
177 for pkgdir
in all_subdirs():
181 pkgdir, latest_tag,
'master'))
185 for l
in open(
'CMakeLists.txt'):
186 if l.strip().startswith(
'gaudi_project'):
187 l =
'gaudi_project(Gaudi %s)\n' % new_version
189 open(
'CMakeLists.txt',
"w").writelines(out)
def releaseNotes(path=os.curdir, from_tag=None, branch=None)
def tag_bar(pkg, version=None)
def updateReleaseNotes(path, notes)