mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-24 22:36:10 +01:00
Edited amalgamated file generator, to block REUSE from getting confused
It struggled with the copyright lines included as string literals.
This commit is contained in:
parent
e09de7222c
commit
5bba3e4038
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user