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ý committed 2017-07-09 21:02:36 +02:00
1 parent fc32165d48
commit 93f84b5b0d
3 files changed
+19 -27

No files matched your search

+1 -1
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: