[tools, cmake] refactor: update/hash check scripts, use tags for some more deps, proper CPMUtil separation #2666

Merged
crueter merged 19 commits from update-fmt into master 2025-10-05 03:04:54 +02:00
4 changed files with 12 additions and 0 deletions
Showing only changes of commit 8257bcc809 - Show all commits

View file

@ -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

View file

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

View file

@ -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

View file

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