From a65eea69c899f6564f2e01b3a710cf1b8a354bbc Mon Sep 17 00:00:00 2001 From: crueter Date: Fri, 3 Oct 2025 16:59:53 -0400 Subject: [PATCH] license headers Signed-off-by: crueter --- tools/cpm/format.sh | 3 +++ tools/cpm/hash.sh | 3 +++ tools/cpm/url-hash.sh | 3 +++ tools/cpm/which.sh | 3 +++ 4 files changed, 12 insertions(+) diff --git a/tools/cpm/format.sh b/tools/cpm/format.sh index 6059077fe1..e636c402b4 100755 --- a/tools/cpm/format.sh +++ b/tools/cpm/format.sh @@ -1,5 +1,8 @@ #!/bin/sh -e +# SPDX-FileCopyrightText: 2025 crueter +# SPDX-License-Identifier: GPL-3.0-or-later + FILES=$(find . src -maxdepth 3 -name cpmfile.json) for file in $FILES; do diff --git a/tools/cpm/hash.sh b/tools/cpm/hash.sh index d9476e19c4..0c653e75c2 100755 --- a/tools/cpm/hash.sh +++ b/tools/cpm/hash.sh @@ -1,5 +1,8 @@ #!/bin/sh -e +# SPDX-FileCopyrightText: 2025 crueter +# SPDX-License-Identifier: GPL-3.0-or-later + # usage: hash.sh repo tag-or-sha # env vars: GIT_HOST, USE_TAG (use tag instead of sha), ARTIFACT (download artifact with that name instead of src archive) diff --git a/tools/cpm/url-hash.sh b/tools/cpm/url-hash.sh index 6709bb4a03..444b14b174 100755 --- a/tools/cpm/url-hash.sh +++ b/tools/cpm/url-hash.sh @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2025 crueter +# SPDX-License-Identifier: GPL-3.0-or-later + SUM=$(wget -q $1 -O - | sha512sum) echo "$SUM" | cut -d " " -f1 diff --git a/tools/cpm/which.sh b/tools/cpm/which.sh index d547bf879d..af12deb1b4 100755 --- a/tools/cpm/which.sh +++ b/tools/cpm/which.sh @@ -1,5 +1,8 @@ #!/bin/sh -e +# SPDX-FileCopyrightText: 2025 crueter +# SPDX-License-Identifier: GPL-3.0-or-later + # check which file a package is in JSON=$(find . src -maxdepth 3 -name cpmfile.json -exec grep -l "$1" {} \;)