support creating the checksums file

This commit is contained in:
Christian Hesse 2025-03-26 09:19:02 +01:00
parent ce39b79f69
commit f8c3659f6a
3 changed files with 17 additions and 2 deletions

9
contrib/checksums.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
# generate a checksums file as used by $ScriptInstallUpdate
set -e
md5sum $(find -name '*.rsc' | sort) | \
sed -e "s| \./||" -e 's|.rsc$||' | \
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add' > 'checksums.json'