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

summaryrefslogtreecommitdiffhomepage
path: root/tools/scripts/generateAmalgamatedFiles.py
diff options
context:
space:
mode:
authorRyan Pavlik2023-08-11 15:06:03 -0500
committerMartin Hořeňovský2023-08-19 14:31:27 +0200
commit5bba3e4038602badb691da914523f667a2dd1f27 (patch)
treefa173ad4d8aeb4c52aa5397e74a36a0282f375a6 /tools/scripts/generateAmalgamatedFiles.py
parente09de7222c47ba1bb589985246d5d33e5f01b8fd (diff)
downloadcatch3-5bba3e4038602badb691da914523f667a2dd1f27.tar.gz
Edited amalgamated file generator, to block REUSE from getting confused
It struggled with the copyright lines included as string literals.
Diffstat (limited to 'tools/scripts/generateAmalgamatedFiles.py')
-rwxr-xr-xtools/scripts/generateAmalgamatedFiles.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/scripts/generateAmalgamatedFiles.py b/tools/scripts/generateAmalgamatedFiles.py
index 99fc446b..402473ce 100755
--- a/tools/scripts/generateAmalgamatedFiles.py
+++ b/tools/scripts/generateAmalgamatedFiles.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
+# Copyright Catch2 Authors
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE.txt or copy at
+# https://www.boost.org/LICENSE_1_0.txt)
+# SPDX-License-Identifier: BSL-1.0
import os
import re
@@ -12,6 +17,8 @@ starting_header = os.path.join(root_path, 'catch2', 'catch_all.hpp')
output_header = os.path.join(catchPath, 'extras', 'catch_amalgamated.hpp')
output_cpp = os.path.join(catchPath, 'extras', 'catch_amalgamated.cpp')
+# REUSE-IgnoreStart
+
# These are the copyright comments in each file, we want to ignore them
copyright_lines = [
'// Copyright Catch2 Authors\n',
@@ -39,6 +46,8 @@ file_header = '''\
// ----------------------------------------------------------
'''
+# REUSE-IgnoreEnd
+
# Returns file header with proper version string and generation time
def formatted_file_header(version):
return file_header.format(version_string=version.getVersionString(),