Skip to content

Commit

Permalink
Merge pull request #175 from 00xc/scripts/licenses
Browse files Browse the repository at this point in the history
scripts: add license headers
  • Loading branch information
joergroedel authored Dec 6, 2023
2 parents b29db24 + 027fb10 commit b3bac21
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 b3bac21

Please sign in to comment.