From cac7a82126d0fe14892d908db2abdcc96c5e5fd1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 29 Dec 2013 22:23:05 +0100 Subject: [PATCH] Explicitely add license information to code files Following OpenStack conventions, let's add a license header to all code files. Change-Id: Ia1992f3e8aba45e96cff6482613ec50df4fca980 --- autogenerate-config-docs/autohelp.py | 11 +++++++++++ autogenerate-config-docs/common.py | 12 ++++++++++++ autogenerate-config-docs/extract_swift_flags.py | 13 +++++++++++++ cleanup/remove_trailing_whitespaces.sh | 13 ++++++++++++- cleanup/remove_unnecessary_spaces.py | 13 ++++++++++++- os_doc_tools/doctest.py | 13 +++++++++++++ 6 files changed, 73 insertions(+), 2 deletions(-) diff --git a/autogenerate-config-docs/autohelp.py b/autogenerate-config-docs/autohelp.py index 2263025e..6e35861b 100755 --- a/autogenerate-config-docs/autohelp.py +++ b/autogenerate-config-docs/autohelp.py @@ -1,4 +1,15 @@ #!/usr/bin/env python +# 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. # # A collection of tools for working with flags from OpenStack # packages and documentation. diff --git a/autogenerate-config-docs/common.py b/autogenerate-config-docs/common.py index f691af56..da843c84 100644 --- a/autogenerate-config-docs/common.py +++ b/autogenerate-config-docs/common.py @@ -1,6 +1,18 @@ # # A collection of shared functions for managing help flag mapping files. # +# 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 oslo.config import cfg diff --git a/autogenerate-config-docs/extract_swift_flags.py b/autogenerate-config-docs/extract_swift_flags.py index c208a9aa..0ebd2dc9 100644 --- a/autogenerate-config-docs/extract_swift_flags.py +++ b/autogenerate-config-docs/extract_swift_flags.py @@ -1,4 +1,17 @@ #!/usr/bin/env python +# +# 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 sys from os import path import glob diff --git a/cleanup/remove_trailing_whitespaces.sh b/cleanup/remove_trailing_whitespaces.sh index cf43d833..7dd7163f 100755 --- a/cleanup/remove_trailing_whitespaces.sh +++ b/cleanup/remove_trailing_whitespaces.sh @@ -2,7 +2,18 @@ ## copyright: B1 Systems GmbH , 2013. ## author: Christian Berendt , 2013. -## license: Apache License, Version 2.0 + +# 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. # Call ./tools/cleanup/remove_trailing_whitespaces.sh in the # root of openstack-manuals. diff --git a/cleanup/remove_unnecessary_spaces.py b/cleanup/remove_unnecessary_spaces.py index b39119e7..8a3aa7ab 100755 --- a/cleanup/remove_unnecessary_spaces.py +++ b/cleanup/remove_unnecessary_spaces.py @@ -2,7 +2,18 @@ ## copyright: B1 Systems GmbH , 2013. ## author: Christian Berendt , 2013. -## license: Apache License, Version 2.0 + +# 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. # Call ./tools/cleanup/remove_unnecessary_spaces.py in the # root of openstack-manuals. diff --git a/os_doc_tools/doctest.py b/os_doc_tools/doctest.py index 3afd61e3..5a35d255 100755 --- a/os_doc_tools/doctest.py +++ b/os_doc_tools/doctest.py @@ -1,4 +1,17 @@ #!/usr/bin/env python + +# 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. + ''' Usage: