[tools] refactor: update/hash checking scripts, use tags for more deps

Uses tags for a bunch of deps that can use them

Also adds a bunmch of scripts to tools/cpm, notably for checking hashes
and checking for updates.

TODO:
- Documentation
- CI target to check hashes
- Script to update the json directly (dedup)
- Function to filter tags (dedup)
- Weekly CI to check for updates

Need to get that other CI runner up

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-10-03 16:56:46 -04:00
parent 8cbb3597dc
commit 67f3bf79c1
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
15 changed files with 541 additions and 265 deletions

9
tools/cpm/which.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh -e
# check which file a package is in
JSON=$(find . src -maxdepth 3 -name cpmfile.json -exec grep -l "$1" {} \;)
[ -z "$JSON" ] && echo "!! No cpmfile definition for $1"
echo $JSON