diff options
| author | Martin Hořeňovský | 2020-01-19 15:37:34 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-01-19 15:39:11 +0100 |
| commit | ec7280379e9fbc8db34c4fa6b29eda2dcd5fdca9 (patch) | |
| tree | fa770c31dfa6410021f36e9b18b5c3adfca2a6f9 /tools/scripts/releaseCommon.py | |
| parent | 21868deeab14df878fdd26f53806954db2922837 (diff) | |
| download | catch3-ec7280379e9fbc8db34c4fa6b29eda2dcd5fdca9.tar.gz | |
Adjust release scripts for v3
Diffstat (limited to 'tools/scripts/releaseCommon.py')
| -rw-r--r-- | tools/scripts/releaseCommon.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/scripts/releaseCommon.py b/tools/scripts/releaseCommon.py index 283337d4..8472f22e 100644 --- a/tools/scripts/releaseCommon.py +++ b/tools/scripts/releaseCommon.py @@ -10,8 +10,8 @@ import fnmatch 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.cpp" ) +rootPath = os.path.join( catchPath, 'src/catch2' ) +versionPath = os.path.join( rootPath, "catch_version.cpp" ) definePath = os.path.join(rootPath, 'catch.hpp') readmePath = os.path.join( catchPath, "README.md" ) cmakePath = os.path.join(catchPath, 'CMakeLists.txt') @@ -149,18 +149,18 @@ def performUpdates(version): version.updateVersionFile() updateVersionDefine(version) - import generateSingleHeader - generateSingleHeader.generate(version) + # import generateSingleHeader + # generateSingleHeader.generate(version) - # Then copy the reporters to single include folder to keep them in sync - # We probably should have some kind of convention to select which reporters need to be copied automagically, - # but this works for now - import shutil - for rep in ('automake', 'tap', 'teamcity', 'sonarqube'): - sourceFile = os.path.join(catchPath, 'include/reporters/catch_reporter_{}.hpp'.format(rep)) - destFile = os.path.join(catchPath, 'single_include', 'catch2', 'catch_reporter_{}.hpp'.format(rep)) - shutil.copyfile(sourceFile, destFile) + # # Then copy the reporters to single include folder to keep them in sync + # # We probably should have some kind of convention to select which reporters need to be copied automagically, + # # but this works for now + # import shutil + # for rep in ('automake', 'tap', 'teamcity', 'sonarqube'): + # sourceFile = os.path.join(catchPath, 'include/reporters/catch_reporter_{}.hpp'.format(rep)) + # destFile = os.path.join(catchPath, 'single_include', 'catch2', 'catch_reporter_{}.hpp'.format(rep)) + # shutil.copyfile(sourceFile, destFile) - updateReadmeFile(version) + # updateReadmeFile(version) updateCmakeFile(version) updateDocumentationVersionPlaceholders(version) |