zstd/contrib
Miguel Ojeda 5c1cdba7dd
[contrib][linux-kernel] Generate SPDX license identifiers (#3294)
Add a `--spdx` option to the freestanding script to prefix
files with a line like (for `.c` files):

    // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause

or (for `.h` and `.S` files):

    /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */

Given the style of the line to be used depends on the extension,
a simple `sed` insert command would not work.

It also skips the file if an existing SPDX line is there,
as well as raising an error if an unexpected SPDX line appears
anywhere else in the file, as well as for unexpected
file extensions.

I double-checked that all currently generated files appear
to be license as expected with:

    grep -LRF 'This source code is licensed under both the BSD-style license (found in the'  linux/lib/zstd
    grep -LRF 'LICENSE file in the root directory of this source tree) and the GPLv2 (found' linux/lib/zstd

but somebody knowledgable on the licensing of the project should
double-check this is the intended case.

Fixes: https://github.com/facebook/zstd/issues/3293
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2022-10-18 16:35:44 -07:00
..
diagnose_corruption [license] Update year to 2021 2021-01-04 17:53:52 -05:00
docker Spelling (#1582) 2019-04-12 11:18:11 -07:00
freestanding_lib [contrib][linux-kernel] Generate SPDX license identifiers (#3294) 2022-10-18 16:35:44 -07:00
gen_html Remove duplicate CXXFLAGS 2018-06-10 18:04:21 -05:00
largeNbDicts [largeNbDicts] Second try at fixing decompression segfault to always create compressInstructions 2022-07-21 11:55:01 -07:00
linux-kernel [contrib][linux-kernel] Generate SPDX license identifiers (#3294) 2022-10-18 16:35:44 -07:00
match_finders Fix typos found by codespell 2022-09-08 23:17:00 +02:00
premake Fix wrong conditions 2018-07-14 12:34:03 +02:00
pzstd Typo and grammar fixes 2022-03-12 08:58:04 +01:00
recovery [contrib][recovery] Add recovery_directory program 2021-01-15 08:45:22 -08:00
seekable_format fixed minor compression difference in btlazy2 2021-12-29 18:51:03 -08:00
seqBench use ZSTD_sequenceBound in seqBench 2022-09-09 13:04:41 -07:00
snap moved snap to /contrib 2018-03-19 16:15:06 -07:00
VS2005 AsyncIO compression part 1 - refactor of existing asyncio code (#3021) 2022-01-24 14:43:02 -08:00
cleanTabs created contrib/cleanTabs 2017-03-30 12:42:44 -07:00