From a440025f08e374df4799c8749970bac56b38b7f5 Mon Sep 17 00:00:00 2001 From: Leona Yoda Date: Tue, 14 Sep 2021 09:16:05 +0900 Subject: [PATCH] [SPARK-36739][DOCS][PYTHON] Add apache license headers to makefiles ### What changes were proposed in this pull request? Add apache license headers to makefiles of PySpark documents. ### Why are the changes needed? Makefiles of PySpark documentations do not have apache license headers, while the other files have. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? `make html` Closes #33979 from yoda-mon/add-license-header-makefiles. Authored-by: Leona Yoda Signed-off-by: Hyukjin Kwon --- python/docs/Makefile | 15 +++++++++++++++ python/docs/make.bat | 19 ++++++++++++++++++- python/docs/make2.bat | 21 +++++++++++++++++++-- 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/python/docs/Makefile b/python/docs/Makefile index 86bce0f88f..a0275b9886 100644 --- a/python/docs/Makefile +++ b/python/docs/Makefile @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You 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. + # Minimal makefile for Sphinx documentation # You can set these variables from the command line. diff --git a/python/docs/make.bat b/python/docs/make.bat index cc29acdc19..ad72e8f26c 100644 --- a/python/docs/make.bat +++ b/python/docs/make.bat @@ -1,4 +1,21 @@ -@ECHO OFF +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem rem This is the entry point for running Sphinx documentation. To avoid polluting the rem environment, it just launches a new cmd to do the real work. diff --git a/python/docs/make2.bat b/python/docs/make2.bat index 26364c1313..29321bb4a7 100644 --- a/python/docs/make2.bat +++ b/python/docs/make2.bat @@ -1,6 +1,23 @@ -@ECHO OFF +@echo off -REM Command file for Sphinx documentation +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build