[tools, cmake] refactor: update/hash check scripts, use tags for some more deps, proper CPMUtil separation #2666
4 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2025 crueter
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
FILES=$(find . src -maxdepth 3 -name cpmfile.json)
|
FILES=$(find . src -maxdepth 3 -name cpmfile.json)
|
||||||
|
|
||||||
for file in $FILES; do
|
for file in $FILES; do
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2025 crueter
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# usage: hash.sh repo tag-or-sha
|
# 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)
|
# env vars: GIT_HOST, USE_TAG (use tag instead of sha), ARTIFACT (download artifact with that name instead of src archive)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2025 crueter
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
SUM=$(wget -q $1 -O - | sha512sum)
|
SUM=$(wget -q $1 -O - | sha512sum)
|
||||||
echo "$SUM" | cut -d " " -f1
|
echo "$SUM" | cut -d " " -f1
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2025 crueter
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# check which file a package is in
|
# check which file a package is in
|
||||||
|
|
||||||
JSON=$(find . src -maxdepth 3 -name cpmfile.json -exec grep -l "$1" {} \;)
|
JSON=$(find . src -maxdepth 3 -name cpmfile.json -exec grep -l "$1" {} \;)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue