mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
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
21 lines
298 B
Bash
Executable File
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"
|