aboutsummaryrefslogtreecommitdiff
path: root/docs/refman
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-12-13 11:38:41 -0800
committerEli Schwartz <eschwartz93@gmail.com>2023-12-13 15:19:21 -0500
commite991c4d45460c09e5eaee6cb1041edb95d1e990e (patch)
tree34e1d374aa99ecd5f4741396860b6463d60385e3 /docs/refman
parent1f82afe8999e9b30403c57f9ac86ef2fc7ec1267 (diff)
downloadmeson-e991c4d45460c09e5eaee6cb1041edb95d1e990e.zip
meson-e991c4d45460c09e5eaee6cb1041edb95d1e990e.tar.gz
meson-e991c4d45460c09e5eaee6cb1041edb95d1e990e.tar.bz2
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 'docs/refman')
-rw-r--r--docs/refman/generatorbase.py12
-rw-r--r--docs/refman/generatorjson.py2
-rw-r--r--docs/refman/generatormd.py13
-rw-r--r--docs/refman/generatorpickle.py13
-rw-r--r--docs/refman/generatorprint.py13
-rw-r--r--docs/refman/generatorvim.py2
-rw-r--r--docs/refman/jsonschema.py2
-rw-r--r--docs/refman/loaderbase.py13
-rw-r--r--docs/refman/loaderpickle.py2
-rw-r--r--docs/refman/loaderyaml.py13
-rw-r--r--docs/refman/main.py13
-rw-r--r--docs/refman/model.py13
12 files changed, 12 insertions, 99 deletions
diff --git a/docs/refman/generatorbase.py b/docs/refman/generatorbase.py
index 08ce492..054180a 100644
--- a/docs/refman/generatorbase.py
+++ b/docs/refman/generatorbase.py
@@ -1,16 +1,6 @@
+# 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.
from abc import ABCMeta, abstractmethod
import typing as T
diff --git a/docs/refman/generatorjson.py b/docs/refman/generatorjson.py
index a2edc18..4c98073 100644
--- a/docs/refman/generatorjson.py
+++ b/docs/refman/generatorjson.py
@@ -1,4 +1,4 @@
-# SPDX-License-Identifer: Apache-2.0
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
from __future__ import annotations
diff --git a/docs/refman/generatormd.py b/docs/refman/generatormd.py
index 79029c1..2c80ab0 100644
--- a/docs/refman/generatormd.py
+++ b/docs/refman/generatormd.py
@@ -1,17 +1,6 @@
+# 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.
-
from .generatorbase import GeneratorBase
import re
import json
diff --git a/docs/refman/generatorpickle.py b/docs/refman/generatorpickle.py
index 364a988..19e416e 100644
--- a/docs/refman/generatorpickle.py
+++ b/docs/refman/generatorpickle.py
@@ -1,17 +1,6 @@
+# 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 pickle
from pathlib import Path
from .generatorbase import GeneratorBase
diff --git a/docs/refman/generatorprint.py b/docs/refman/generatorprint.py
index d805296..b1ed375 100644
--- a/docs/refman/generatorprint.py
+++ b/docs/refman/generatorprint.py
@@ -1,17 +1,6 @@
+# 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.
-
from .generatorbase import GeneratorBase
from .model import ReferenceManual, Object, Function, DataTypeInfo, Type, ObjectType
diff --git a/docs/refman/generatorvim.py b/docs/refman/generatorvim.py
index ea72574..9cdb9b2 100644
--- a/docs/refman/generatorvim.py
+++ b/docs/refman/generatorvim.py
@@ -1,4 +1,4 @@
-# SPDX-License-Identifer: Apache-2.0
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2023 The Meson development team
from __future__ import annotations
diff --git a/docs/refman/jsonschema.py b/docs/refman/jsonschema.py
index 283d3a2..e8ace78 100644
--- a/docs/refman/jsonschema.py
+++ b/docs/refman/jsonschema.py
@@ -1,4 +1,4 @@
-# SPDX-License-Identifer: Apache-2.0
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
import typing as T
diff --git a/docs/refman/loaderbase.py b/docs/refman/loaderbase.py
index e64134f..39c92bf 100644
--- a/docs/refman/loaderbase.py
+++ b/docs/refman/loaderbase.py
@@ -1,17 +1,6 @@
+# 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.
-
from abc import ABCMeta, abstractmethod
from pathlib import Path
import re
diff --git a/docs/refman/loaderpickle.py b/docs/refman/loaderpickle.py
index 722fedf..8e7a25f 100644
--- a/docs/refman/loaderpickle.py
+++ b/docs/refman/loaderpickle.py
@@ -1,4 +1,4 @@
-# SPDX-License-Identifer: Apache-2.0
+# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 The Meson development team
from pathlib import Path
diff --git a/docs/refman/loaderyaml.py b/docs/refman/loaderyaml.py
index e7ec57a..15ba590 100644
--- a/docs/refman/loaderyaml.py
+++ b/docs/refman/loaderyaml.py
@@ -1,17 +1,6 @@
+# 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.
-
from .loaderbase import LoaderBase
from .model import (
Type,
diff --git a/docs/refman/main.py b/docs/refman/main.py
index 9a3d16a..f6cdf49 100644
--- a/docs/refman/main.py
+++ b/docs/refman/main.py
@@ -1,17 +1,6 @@
+# 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.
-
from pathlib import Path
import argparse
import typing as T
diff --git a/docs/refman/model.py b/docs/refman/model.py
index 0c65c58..51d4ca2 100644
--- a/docs/refman/model.py
+++ b/docs/refman/model.py
@@ -1,17 +1,6 @@
+# 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.
-
from dataclasses import dataclass, field
from enum import Enum
import typing as T