xca/release/gen-binary-hash
Christian Hohnstaedt 957bdbaa72 Put release related files into an own sub-directory
git.release.something ->
   Create any git release with a tag to test package (debian/rpm) build

git.release -> Create required changes and tags for the next release
git.publish -> Finalize the release (github release)
gen-binary-hash / binary-hashes.json -> keep track of release hashes
2021-05-09 12:22:53 +02:00

21 lines
298 B
Bash
Executable File

#!/bin/sh
set -ex
hashes="$(dirname $0)/binary-hashes.json"
export dir="$1"
(
head -n -2
test -z "$dir" || cd $dir
sha256sum *xca* | while read md file; do
echo ' "'$file'":"'$md'",'
done
cat <<-EOF
"last":""
}
EOF
) < "$hashes" > "$hashes".tmp &&
mv "$hashes".tmp "$hashes"