tree-wide: add SPDX headers and shebang

This commit is contained in:
Mike Yuan 2024-04-07 00:09:04 +08:00
parent 3561b8fe2a
commit becff9f3e3
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3
5 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# SPDX-License-Identifier: GPL-2.0-only
shopt -s extglob shopt -s extglob

3
common
View File

@ -1,4 +1,7 @@
#!/hint/bash
# SPDX-License-Identifier: GPL-2.0-only
# shellcheck disable=SC2059 # $1 and $2 can contain the printf modifiers # shellcheck disable=SC2059 # $1 and $2 can contain the printf modifiers
out() { printf "$1 $2\n" "${@:3}"; } out() { printf "$1 $2\n" "${@:3}"; }
error() { out "==> ERROR:" "$@"; } >&2 error() { out "==> ERROR:" "$@"; } >&2
warning() { out "==> WARNING:" "$@"; } >&2 warning() { out "==> WARNING:" "$@"; } >&2

View File

@ -1,3 +1,6 @@
#!/hint/bash
# SPDX-License-Identifier: GPL-2.0-only
# generated from util-linux source: libmount/src/utils.c # generated from util-linux source: libmount/src/utils.c
declare -A pseudofs_types=([anon_inodefs]=1 declare -A pseudofs_types=([anon_inodefs]=1
[apparmorfs]=1 [apparmorfs]=1

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# SPDX-License-Identifier: GPL-2.0-only
shopt -s extglob shopt -s extglob

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# SPDX-License-Identifier: GPL-2.0-only
# #
# Assumptions: # Assumptions: