eden/tools/cpm/which.sh
crueter aad0ee6c58 [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>
2025-10-05 03:04:18 +02:00

9 lines
No EOL
194 B
Bash
Executable file

#!/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