diff options
| author | Leitwolf11 | 2026-10-24 19:07:10 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-24 19:07:10 +0300 |
| commit | a2edf60b9f410d26485ac7c0492870a0905f9545 (patch) | |
| tree | cd2055cb2eeb0bdef1d5bed1d39d9569df6f5b97 /tools/scripts/generateAmalgamatedFiles.py | |
| parent | 4f1c759cffcb14bd6511e1d7c5fbace682e24f2d (diff) | |
| download | catch3-a2edf60b9f410d26485ac7c0492870a0905f9545.tar.gz | |
Remove what Catch2's maintainers left that is not ours
Catch3 is maintained by Progmasoft, but the repository still carried
Catch2's funding links, its maintainer list and GPG keys, a Code of Conduct
contact at a Catch2 maintainer's address, its lists of users, its release
process and release scripts, its AppVeyor configuration and its logos.
- Removed FUNDING.yml, MAINTAINERS.md, appveyor.yml with the AppVeyor and
OpenCppCoverage helpers, Catch2's user lists, why-catch, release process
and deprecations pages, its two logos and the major/minor/patch release
scripts. releaseCommon.py keeps only what the amalgamation reads.
- The Code of Conduct sends reports to support@progmasoft.com.
- contributing.md and release-notes.md are written for Catch3; Catch2's
release history is linked upstream.
- CMake, pkg-config and Doxygen name Catch3 and its repository; the
amalgamated files say which Catch3 version and which Catch2 engine they
come from.
Diffstat (limited to 'tools/scripts/generateAmalgamatedFiles.py')
| -rwxr-xr-x | tools/scripts/generateAmalgamatedFiles.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/scripts/generateAmalgamatedFiles.py b/tools/scripts/generateAmalgamatedFiles.py index 5fed3358..2d40bcb4 100755 --- a/tools/scripts/generateAmalgamatedFiles.py +++ b/tools/scripts/generateAmalgamatedFiles.py @@ -39,7 +39,7 @@ file_header = '''\ // SPDX-License-Identifier: BSL-1.0 -// Catch v{version_string} +// Catch3 v{catch3_version}, on the Catch2 v{version_string} engine // Generated: {generation_time} // ---------------------------------------------------------- // This file is an amalgamation of multiple different files. @@ -54,8 +54,17 @@ file_header = '''\ # REUSE-IgnoreEnd # Returns file header with proper version string and generation time +def catch3_version(): + version_file = os.path.join(root_path, 'Progmasoft', 'Catch3', 'Version.hpp') + with open(version_file, mode='r', encoding='utf-8') as input: + match = re.search(r'kVersion = "([^"]+)"', input.read()) + if not match: + raise RuntimeError('no kVersion in ' + version_file) + return match.group(1) + def formatted_file_header(version): return file_header.format(version_string=version.getVersionString(), + catch3_version=catch3_version(), generation_time=datetime.datetime.now()) # Which headers were already concatenated (and thus should not be |