Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-08-24 16:33:15 +0200
committerMartin Hořeňovský2023-08-24 16:34:31 +0200
commit85eb4652b46cc69c4ad7915c9fd3b009d99e9fb7 (patch)
tree8b0ed302106c4ffe875701d7823aa72480d432e9 /tools
parent5bba3e4038602badb691da914523f667a2dd1f27 (diff)
downloadcatch3-85eb4652b46cc69c4ad7915c9fd3b009d99e9fb7.tar.gz
Add nice license headers to files in examples/ and fuzzing/
Related to #2730
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkLicense.py3
-rwxr-xr-xtools/scripts/generateAmalgamatedFiles.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/scripts/checkLicense.py b/tools/scripts/checkLicense.py
index 9a949769..7078d3ec 100755
--- a/tools/scripts/checkLicense.py
+++ b/tools/scripts/checkLicense.py
@@ -33,7 +33,8 @@ def check_licences_in_path(path: str) -> int:
def check_licences():
failed = 0
- roots = ['src/catch2', 'tests']
+ # Add 'extras' after the amalgamted files are regenerated with the new script (past 3.4.0)
+ roots = ['src/catch2', 'tests', 'examples', 'fuzzing']
for root in roots:
failed += check_licences_in_path(root)
diff --git a/tools/scripts/generateAmalgamatedFiles.py b/tools/scripts/generateAmalgamatedFiles.py
index 402473ce..e3e86aab 100755
--- a/tools/scripts/generateAmalgamatedFiles.py
+++ b/tools/scripts/generateAmalgamatedFiles.py
@@ -31,6 +31,7 @@ copyright_lines = [
# The header of the amalgamated file: copyright information + explanation
# what this file is.
file_header = '''\
+
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at