MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / printCopyrightSourceComments

Function printCopyrightSourceComments

scripts/genRef.py:110–122  ·  view source on GitHub ↗

Print Khronos CC-BY copyright notice on open file fp. Writes an asciidoc comment block, which copyrights the source file.

(fp)

Source from the content-addressed store, hash-verified

108
109
110def printCopyrightSourceComments(fp):
111 """Print Khronos CC-BY copyright notice on open file fp.
112
113 Writes an asciidoc comment block, which copyrights the source
114 file."""
115
116 # Work around constraints of the 'reuse' tool
117 # REUSE-IgnoreStart
118 print('// Copyright 2014-2026 The Khronos Group Inc.', file=fp)
119 print('// SPDX' + '-License-Identifier: CC-BY-4.0', file=fp)
120 # REUSE-IgnoreEnd
121
122 print('', file=fp)
123
124
125def printFooter(fp, leveloffset=0):

Callers 2

refPageShellFunction · 0.85
genAntoraNavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected