Browse Source

license headers

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2666/head
crueter 5 months ago
parent
commit
8257bcc809
  1. 3
      tools/cpm/format.sh
  2. 3
      tools/cpm/hash.sh
  3. 3
      tools/cpm/url-hash.sh
  4. 3
      tools/cpm/which.sh

3
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

3
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)

3
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

3
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" {} \;)

Loading…
Cancel
Save