From ca93dd3aaedb685125cd3bf6def0b7d6a9a0bbb0 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Thu, 27 Oct 2022 21:49:24 +0300 Subject: [PATCH] Add SPDX headers to hack scripts The hack directory scripts had no copyright info. Use the same as the Go files. Added using: $ reuse addheader \ --copyright 'The RamenDR authors' \ --exclude-year \ --license Apache-2.0 \ --template ramen \ `git ls-files | grep -E 'hack/.+\.sh$'` Signed-off-by: Nir Soffer --- hack/curl-install.sh | 4 ++++ hack/docker-client-install.sh | 4 ++++ hack/docker-install.sh | 3 +++ hack/docker-uninstall.sh | 4 ++++ hack/exit_stack.sh | 3 +++ hack/fuse-overlayfs-install.sh | 4 ++++ hack/git-checkout.sh | 3 +++ hack/github-url.sh | 4 ++++ hack/go-install.sh | 3 +++ hack/kubectl-install.sh | 4 ++++ hack/kustomize-install.sh | 4 ++++ hack/minikube-install.sh | 4 ++++ hack/minikube-ramen.sh | 4 ++++ hack/minikube-rook-mirror-setup.sh | 4 ++++ hack/minikube-rook-mirror-test.sh | 4 ++++ hack/minikube-rook-setup.sh | 4 ++++ hack/minikube.sh | 4 ++++ hack/ocm-minikube-ramen.sh | 4 ++++ hack/ocm-minikube.sh | 4 ++++ hack/olm.sh | 4 ++++ hack/podman-docker-install.sh | 4 ++++ hack/podman-docker-uninstall.sh | 4 ++++ hack/podman-install.sh | 4 ++++ hack/podman-uninstall.sh | 4 ++++ hack/pre-commit.sh | 4 ++++ hack/setup-kind-cluster.sh | 4 ++++ hack/shell_option_store_restore.sh | 3 +++ hack/shio-demo.sh | 4 ++++ hack/true_if_exit_status_and_stderr.sh | 3 +++ hack/uidmap-install.sh | 4 ++++ hack/until_true_or_n.sh | 3 +++ hack/velero-install.sh | 4 ++++ hack/velero-test.sh | 4 ++++ hack/velero-uninstall.sh | 4 ++++ 34 files changed, 129 insertions(+) diff --git a/hack/curl-install.sh b/hack/curl-install.sh index 39d029f56..6a76b6de6 100755 --- a/hack/curl-install.sh +++ b/hack/curl-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 if ! command -v curl; then wget -O ${1}/curl https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-amd64 diff --git a/hack/docker-client-install.sh b/hack/docker-client-install.sh index dafab3af5..e7746ba3c 100755 --- a/hack/docker-client-install.sh +++ b/hack/docker-client-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2046,2086 set -x set -- $1 20.10.6 diff --git a/hack/docker-install.sh b/hack/docker-install.sh index 675a829ee..1fd110afa 100644 --- a/hack/docker-install.sh +++ b/hack/docker-install.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2046,2086 docker_install() { diff --git a/hack/docker-uninstall.sh b/hack/docker-uninstall.sh index 25fcc4c4f..5d3f0ce52 100755 --- a/hack/docker-uninstall.sh +++ b/hack/docker-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e if test -x "${1}"/dockerd-rootless-setuptool.sh; then diff --git a/hack/exit_stack.sh b/hack/exit_stack.sh index 6e91b892b..6b7b4badf 100644 --- a/hack/exit_stack.sh +++ b/hack/exit_stack.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh trap 'set -- $?; trap - EXIT; eval $exit_stack; echo exit status: $1' EXIT trap 'trap - EXIT; eval $exit_stack' EXIT diff --git a/hack/fuse-overlayfs-install.sh b/hack/fuse-overlayfs-install.sh index 62f3f7f43..9d617f29c 100755 --- a/hack/fuse-overlayfs-install.sh +++ b/hack/fuse-overlayfs-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -x # https://github.com/containers/fuse-overlayfs diff --git a/hack/git-checkout.sh b/hack/git-checkout.sh index 6cd4932bf..316f1d0e5 100644 --- a/hack/git-checkout.sh +++ b/hack/git-checkout.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2086 git_checkout() { diff --git a/hack/github-url.sh b/hack/github-url.sh index b6a0ac81a..035557c67 100644 --- a/hack/github-url.sh +++ b/hack/github-url.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + github_url_file() { echo https://raw.githubusercontent.com/"$1"/"$3"/"$2" diff --git a/hack/go-install.sh b/hack/go-install.sh index 54d9a2ce6..44811d0e5 100644 --- a/hack/go-install.sh +++ b/hack/go-install.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2046,2086 go_install() { diff --git a/hack/kubectl-install.sh b/hack/kubectl-install.sh index df748e790..42f452507 100755 --- a/hack/kubectl-install.sh +++ b/hack/kubectl-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v kubectl\ ||\ diff --git a/hack/kustomize-install.sh b/hack/kustomize-install.sh index c94457363..355801cd3 100755 --- a/hack/kustomize-install.sh +++ b/hack/kustomize-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v kustomize; then $(dirname ${0})/curl-install.sh ${1} diff --git a/hack/minikube-install.sh b/hack/minikube-install.sh index 8007059a0..8515482cf 100755 --- a/hack/minikube-install.sh +++ b/hack/minikube-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v minikube; then # https://minikube.sigs.k8s.io/docs/start/ diff --git a/hack/minikube-ramen.sh b/hack/minikube-ramen.sh index a3951e21a..cfeee6c63 100755 --- a/hack/minikube-ramen.sh +++ b/hack/minikube-ramen.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -e ramen_hack_directory_path_name=$(dirname $0) diff --git a/hack/minikube-rook-mirror-setup.sh b/hack/minikube-rook-mirror-setup.sh index 9c19fbb15..5263e1b26 100755 --- a/hack/minikube-rook-mirror-setup.sh +++ b/hack/minikube-rook-mirror-setup.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e -o pipefail scriptdir="$(dirname "$(realpath "$0")")" diff --git a/hack/minikube-rook-mirror-test.sh b/hack/minikube-rook-mirror-test.sh index 123d60198..931213d09 100755 --- a/hack/minikube-rook-mirror-test.sh +++ b/hack/minikube-rook-mirror-test.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e -o pipefail diff --git a/hack/minikube-rook-setup.sh b/hack/minikube-rook-setup.sh index d461ef958..d61bfe074 100755 --- a/hack/minikube-rook-setup.sh +++ b/hack/minikube-rook-setup.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e -o pipefail diff --git a/hack/minikube.sh b/hack/minikube.sh index e0b8f2449..54948d7d3 100644 --- a/hack/minikube.sh +++ b/hack/minikube.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 minikube_minio_url() { diff --git a/hack/ocm-minikube-ramen.sh b/hack/ocm-minikube-ramen.sh index ccfdb6ba5..2f5b5a05a 100755 --- a/hack/ocm-minikube-ramen.sh +++ b/hack/ocm-minikube-ramen.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2046,2086,1091 set -x set -e diff --git a/hack/ocm-minikube.sh b/hack/ocm-minikube.sh index 270222559..f9b8865c9 100755 --- a/hack/ocm-minikube.sh +++ b/hack/ocm-minikube.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,1091,2046,2086 # open cluster management (ocm) hub and managed minikube kvm amd64 clusters deploy diff --git a/hack/olm.sh b/hack/olm.sh index 4326df6d5..1b4b46b89 100644 --- a/hack/olm.sh +++ b/hack/olm.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2086,1091 OLM_BASE_URL="https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.19.1" diff --git a/hack/podman-docker-install.sh b/hack/podman-docker-install.sh index a2d1295b6..8607f8751 100755 --- a/hack/podman-docker-install.sh +++ b/hack/podman-docker-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v docker; then $(dirname ${0})/podman-install.sh diff --git a/hack/podman-docker-uninstall.sh b/hack/podman-docker-uninstall.sh index bbc134990..889c9d9f5 100755 --- a/hack/podman-docker-uninstall.sh +++ b/hack/podman-docker-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 if test "$(file -h /usr/bin/docker)" = '/usr/bin/docker: symbolic link to /usr/bin/podman' then diff --git a/hack/podman-install.sh b/hack/podman-install.sh index 65642fede..c0092f6ba 100755 --- a/hack/podman-install.sh +++ b/hack/podman-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 if ! command -v podman; then # https://podman.io/getting-started/installation#linux-distributions diff --git a/hack/podman-uninstall.sh b/hack/podman-uninstall.sh index 306632986..a43228ab9 100755 --- a/hack/podman-uninstall.sh +++ b/hack/podman-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if command -v podman; then $(dirname ${0})/podman-docker-uninstall.sh diff --git a/hack/pre-commit.sh b/hack/pre-commit.sh index 6666ad6ca..65be822a0 100755 --- a/hack/pre-commit.sh +++ b/hack/pre-commit.sh @@ -1,4 +1,8 @@ #! /bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # vim: set ts=4 sw=4 et : # Usage: pre-commit.sh diff --git a/hack/setup-kind-cluster.sh b/hack/setup-kind-cluster.sh index e580343a0..77d1356a3 100755 --- a/hack/setup-kind-cluster.sh +++ b/hack/setup-kind-cluster.sh @@ -1,4 +1,8 @@ #! /bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -e -o pipefail KIND_IMAGE="${KIND_IMAGE:-1.20.7@sha256:cbeaf907fc78ac97ce7b625e4bf0de16e3ea725daf6b04f930bd14c67c671ff9}" diff --git a/hack/shell_option_store_restore.sh b/hack/shell_option_store_restore.sh index bede3615a..e399c4cb4 100644 --- a/hack/shell_option_store_restore.sh +++ b/hack/shell_option_store_restore.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2086 shell_option_store() { diff --git a/hack/shio-demo.sh b/hack/shio-demo.sh index 879707d13..4e180a588 100755 --- a/hack/shio-demo.sh +++ b/hack/shio-demo.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2046,2086 set -e diff --git a/hack/true_if_exit_status_and_stderr.sh b/hack/true_if_exit_status_and_stderr.sh index 6ab0245ec..3d63c2da5 100644 --- a/hack/true_if_exit_status_and_stderr.sh +++ b/hack/true_if_exit_status_and_stderr.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh true_if_exit_status_and_stderr() { diff --git a/hack/uidmap-install.sh b/hack/uidmap-install.sh index 22b5dd894..ed744587e 100755 --- a/hack/uidmap-install.sh +++ b/hack/uidmap-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1091 if ! command -v newuidmap then diff --git a/hack/until_true_or_n.sh b/hack/until_true_or_n.sh index 4b03e7aaa..97dc83dba 100644 --- a/hack/until_true_or_n.sh +++ b/hack/until_true_or_n.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2086 until_true_or_n() { diff --git a/hack/velero-install.sh b/hack/velero-install.sh index 45ea86caa..341c91af2 100755 --- a/hack/velero-install.sh +++ b/hack/velero-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -x set -e diff --git a/hack/velero-test.sh b/hack/velero-test.sh index 43f26630a..1a88bd5dd 100755 --- a/hack/velero-test.sh +++ b/hack/velero-test.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2046,2086 set -e ramen_hack_directory_path_name=$(dirname $0) diff --git a/hack/velero-uninstall.sh b/hack/velero-uninstall.sh index 067235bf2..3dcbd21a3 100755 --- a/hack/velero-uninstall.sh +++ b/hack/velero-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -x set -e