mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Updated release script for README changes
This commit is contained in:
parent
f0a2a213ab
commit
f155366cf2
@ -14,7 +14,7 @@ seenHeaders = set([])
|
||||
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||
rootPath = os.path.join( catchPath, 'include/' )
|
||||
versionPath = os.path.join( rootPath, "internal/catch_version.hpp" )
|
||||
readmePath = os.path.join( catchPath, "README" )
|
||||
readmePath = os.path.join( catchPath, "README.md" )
|
||||
#outputPath = os.path.join( catchPath, 'single_include/catch.hpp' )
|
||||
|
||||
bumpVersion = len(sys.argv) < 2 or sys.argv[1] <> "nobump"
|
||||
@ -82,8 +82,10 @@ class Version:
|
||||
lines.append( line.rstrip() )
|
||||
f.close()
|
||||
f = open( readmePath, 'w' )
|
||||
f.write( 'CATCH v{0}.{1} build {2} ({3} branch)\n'.format( self.majorVersion, self.minorVersion, self.buildNumber, self.branchName ) )
|
||||
for line in lines[1:]:
|
||||
for line in lines:
|
||||
if line.startswith( "## CATCH" ):
|
||||
f.write( '## CATCH v{0}.{1} build {2} ({3} branch)\n'.format( self.majorVersion, self.minorVersion, self.buildNumber, self.branchName ) )
|
||||
else:
|
||||
f.write( line + "\n" )
|
||||
|
||||
def generateSingleInclude():
|
||||
|
Loading…
Reference in New Issue
Block a user