diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-12-13 11:38:41 -0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-12-13 15:19:21 -0500 |
| commit | e991c4d45460c09e5eaee6cb1041edb95d1e990e (patch) | |
| tree | 34e1d374aa99ecd5f4741396860b6463d60385e3 /tools | |
| parent | 1f82afe8999e9b30403c57f9ac86ef2fc7ec1267 (diff) | |
| download | meson-e991c4d45460c09e5eaee6cb1041edb95d1e990e.tar.gz | |
Use SPDX-License-Identifier consistently
This replaces all of the Apache blurbs at the start of each file with an
`# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing
uses to be consistent in capitalization, and to be placed above any
copyright notices.
This removes nearly 3000 lines of boilerplate from the project (only
python files), which no developer cares to look at.
SPDX is in common use, particularly in the Linux kernel, and is the
recommended format for Meson's own `project(license: )` field
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/ac_converter.py | 14 | ||||
| -rwxr-xr-x | tools/boost_names.py | 14 | ||||
| -rwxr-xr-x | tools/cmake2meson.py | 14 | ||||
| -rw-r--r-- | tools/copy_files.py | 14 | ||||
| -rwxr-xr-x | tools/dircondenser.py | 15 | ||||
| -rwxr-xr-x | tools/regenerate_docs.py | 15 | ||||
| -rwxr-xr-x | tools/run_with_cov.py | 13 |
7 files changed, 6 insertions, 93 deletions
diff --git a/tools/ac_converter.py b/tools/ac_converter.py index f2a559988..319b7e6d8 100755 --- a/tools/ac_converter.py +++ b/tools/ac_converter.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2015 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - help_message = """Usage: {} <config.h.meson> This script reads config.h.meson, looks for header diff --git a/tools/boost_names.py b/tools/boost_names.py index f27d524e0..3afff163c 100755 --- a/tools/boost_names.py +++ b/tools/boost_names.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2017 Niklas Claesson -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - """This is two implementations for how to get module names from the boost sources. One relies on json metadata files in the sources, the other relies on the folder names. diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 7889cd825..f9153d109 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -1,19 +1,7 @@ #!/usr/bin/env python3 - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2014 Jussi Pakkanen -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import typing as T from pathlib import Path import sys diff --git a/tools/copy_files.py b/tools/copy_files.py index de2518972..c13ebcc9e 100644 --- a/tools/copy_files.py +++ b/tools/copy_files.py @@ -1,20 +1,6 @@ #!/usr/bin/env python3 - - # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ''' Copy files ''' diff --git a/tools/dircondenser.py b/tools/dircondenser.py index 1b262f980..fcdb1d5dc 100755 --- a/tools/dircondenser.py +++ b/tools/dircondenser.py @@ -1,20 +1,7 @@ #!/usr/bin/env python3 - - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - '''Renames test case directories using Git from this: 1 something diff --git a/tools/regenerate_docs.py b/tools/regenerate_docs.py index 6e4d8f9ad..b7484e765 100755 --- a/tools/regenerate_docs.py +++ b/tools/regenerate_docs.py @@ -1,20 +1,7 @@ #!/usr/bin/env python3 - - +# SPDX-License-Identifier: Apache-2.0 # Copyright 2018 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ''' Regenerate markdown docs by using `meson.py` from the root dir ''' diff --git a/tools/run_with_cov.py b/tools/run_with_cov.py index 3f78efcb3..0d3fba654 100755 --- a/tools/run_with_cov.py +++ b/tools/run_with_cov.py @@ -1,18 +1,7 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 The Meson development team -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - import subprocess import coverage import os |
