From 6f44c8b48672f0bf7a13142ab40509f496d54370 Mon Sep 17 00:00:00 2001 From: Paul Schweigert Date: Thu, 9 Jun 2022 17:50:25 -0400 Subject: [PATCH] adds copyright info to some hack scripts (#5021) Signed-off-by: Paul S. Schweigert --- hack/build.sh | 16 +++++++++++++++- hack/macros.py | 14 ++++++++++++++ hack/mkdocs.sh | 14 ++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/hack/build.sh b/hack/build.sh index a834f8a5d..b27170627 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -1,4 +1,18 @@ -#!/bin/bash +#!/usr/bin/env bash + +# Copyright 2018 The Knative Authors +# +# 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. set -e set -x diff --git a/hack/macros.py b/hack/macros.py index 05d1e3098..da3601c32 100644 --- a/hack/macros.py +++ b/hack/macros.py @@ -1,3 +1,17 @@ +# Copyright 2021 The Knative Authors +# +# 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 os import semver import sys diff --git a/hack/mkdocs.sh b/hack/mkdocs.sh index eca654d35..ecabff3e5 100755 --- a/hack/mkdocs.sh +++ b/hack/mkdocs.sh @@ -1,5 +1,19 @@ #!/bin/sh +# Copyright 2021 The Knative Authors +# +# 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. + PORT=${2:-8000} mkdocs serve --config-file "./mkdocs.yml" --livereload -a 0.0.0.0:${PORT}