Skip to content

treewide: replace license headers with SPDX tags#483

Closed
KanjiMonster wants to merge 1 commit intomainfrom
jogo_spdx_headers
Closed

treewide: replace license headers with SPDX tags#483
KanjiMonster wants to merge 1 commit intomainfrom
jogo_spdx_headers

Conversation

@KanjiMonster
Copy link
Contributor

Description

Replace all license headers in source files with machine readable SPDX license and copyright headers.

Year is based on initial check in of a file, according to git log --follow (to catch renames).

Motivation and Context

Machine readable license information make compliance with licenses and regulations easier.

@KanjiMonster KanjiMonster marked this pull request as draft October 10, 2025 09:51
Replace all license headers in source files with machine readable SPDX
license and copyright headers.

Year is based on initial check in of a file, according to git log
--follow (to catch renames).

License headers update with the reuse tool[1], the following way:

  YEAR=$(git log --format %as | tail -n 1  | cut -d- -f 1)
  reuse annotate -y $YEAR -c "BISDN GmbH" \
	-l "MPL-2.0-no-copyleft-exception" \
	--copyright-prefix spdx-symbol \
	--style cpp --single-line $file

(--style cpp was needed for headers, omitted for python script)

License used is based on the presence of Exhibit B at the end of
COPYING.

[1] https://reuse.software/

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
@KanjiMonster
Copy link
Contributor Author

Accidentally added it with a different PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant