Skip to content

Commit

Permalink
scripts: add license headers
Browse files Browse the repository at this point in the history
Add missing license heaaders to files under the scripts/ path.

Signed-off-by: Carlos López <carlos.lopez@suse.com>
  • Loading branch information
00xc committed Dec 5, 2023
1 parent 8cbab91 commit 027fb10
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/check-signed-off.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2023 SUSE LLC
#
# Author: Carlos López <carlos.lopez@suse.com>

matches_any() {
needle=$1
Expand Down
5 changes: 5 additions & 0 deletions scripts/container/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (C) 2023 IBM
#
# Author: Claudio Carvalho <cclaudio@linux.ibm.com>

CURDIR=$(dirname "$(realpath "$0")")
WORKDIR=$(realpath "${CURDIR}/../..")
Expand Down
6 changes: 6 additions & 0 deletions scripts/container/opensuse-rust.docker
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (C) 2023 IBM
#
# Author: Claudio Carvalho <cclaudio@linux.ibm.com>
#
# Usage example:
#
# git clone https://github.com/coconut-svsm/svsm.git
Expand Down
4 changes: 4 additions & 0 deletions scripts/install-hooks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2023 SUSE LLC
#
# Author: Joerg Roedel <jroedel@suse.de>

install -m 755 scripts/pre-commit .git/hooks/
4 changes: 4 additions & 0 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2023 SUSE LLC
#
# Author: Joerg Roedel <jroedel@suse.de>

check_file_header() {
header_warning="Header format incorrect in $1, follow the header structure in other files"
Expand Down
4 changes: 4 additions & 0 deletions scripts/test-in-svsm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2023 SUSE LLC
#
# Author: Joerg Roedel <jroedel@suse.de>

set -e

Expand Down

0 comments on commit 027fb10

Please sign in to comment.