Modified generateSingleHeader script to work with .cpp files better

Also fixed the scripts to take into account renamed version file
This commit is contained in:
Martin Hořeňovský 2017-07-09 20:58:51 +02:00
parent fc32165d48
commit 93f84b5b0d
3 changed files with 19 additions and 27 deletions

View file

@ -9,7 +9,7 @@ from scriptCommon import catchPath
versionParser = re.compile( r'(\s*static\sVersion\sversion)\s*\(\s*(.*)\s*,\s*(.*)\s*,\s*(.*)\s*,\s*\"(.*)\"\s*,\s*(.*)\s*\).*' )
rootPath = os.path.join( catchPath, 'include/' )
versionPath = os.path.join( rootPath, "internal/catch_version.hpp" )
versionPath = os.path.join( rootPath, "internal/catch_version.cpp" )
readmePath = os.path.join( catchPath, "README.md" )
class Version: