[cmake] Update CPMUtil (#4123)

Notable changes

- Single cpmfile
- version/min_version/git_version have been fixed and replaced with
  version and min_version
- Docs rewrite
- Legacy options are gone
- Fixed update/version commands
- Added patch creation functionality

Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4123
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
crueter 2026-06-26 02:22:04 +02:00
parent 6bdb03d8ac
commit c993bc01a4
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
35 changed files with 1500 additions and 1294 deletions

View file

@ -18,8 +18,11 @@ Commands:
add Add a new package
rm Remove a package
version Change the version of a package
which Find which cpmfile a package is defined in
which Check if a package is defined
download Get the download URL for a package
dir Get the local directory for a package
reset Reset a fetched package to its original state
patch Create an in-tree patch based on local modifications
EOF
@ -31,7 +34,7 @@ export SCRIPTS
while :; do
case "$1" in
hash | update | fetch | add | rm | version | which | download)
hash | update | fetch | add | rm | version | which | download | reset | patch | dir)
cmd="$1"
shift
"$SCRIPTS/$cmd".sh "$@"