summaryrefslogtreecommitdiff
path: root/tomlplusplus/tools/generate_single_header.py
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 21:11:23 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 21:11:23 +0300
commit4d4efac796f3c1f355de8d925daa26b69263abd3 (patch)
tree74a8f3d3f41591a4d7bcd1696c792e4f663193f6 /tomlplusplus/tools/generate_single_header.py
parentad3e782536599445e9ed066987f26b09981ed063 (diff)
downloadProject-Tick-4d4efac796f3c1f355de8d925daa26b69263abd3.tar.gz
Project-Tick-4d4efac796f3c1f355de8d925daa26b69263abd3.zip
NOISSUE Add various license files and update REUSE configuration
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'tomlplusplus/tools/generate_single_header.py')
-rwxr-xr-xtomlplusplus/tools/generate_single_header.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tomlplusplus/tools/generate_single_header.py b/tomlplusplus/tools/generate_single_header.py
index fed4ae4e1e..f2fd875a74 100755
--- a/tomlplusplus/tools/generate_single_header.py
+++ b/tomlplusplus/tools/generate_single_header.py
@@ -97,8 +97,10 @@ def main():
toml_h = re.sub('([^ \t])[ \t]+\n', r'\1\n', toml_h)
# explicit 'strip this' blocks
toml_h = re.sub(r'(?:\n[ \t]*)?//[#!][ \t]*[{][{].*?//[#!][ \t]*[}][}].*?\n', '\n', toml_h, flags=re.S)
+ # REUSE-IgnoreStart
# spdx license identifiers
toml_h = re.sub(r'^\s*//\s*SPDX-License-Identifier:.+?$', '', toml_h, 0, re.I | re.M)
+ # REUSE-IgnoreEnd
# double blank lines
toml_h = re.sub('\n(?:[ \t]*\n[ \t]*)+\n', '\n\n', toml_h)
# magic comments
@@ -148,10 +150,12 @@ def main():
# build the preamble (license etc)
preamble = []
+# REUSE-IgnoreStart
preamble.append(rf'''
// toml++ v{version}
// https://github.com/marzer/tomlplusplus
// SPDX-License-Identifier: MIT''')
+# REUSE-IgnoreEnd
preamble.append(r'''
// - THIS FILE WAS ASSEMBLED FROM MULTIPLE HEADER FILES BY A SCRIPT - PLEASE DON'T EDIT IT DIRECTLY -
//