xca/misc/gen-binary-hash
Christian Hohnstaedt dc45928ca9 Automated release
./git.release:
  Create the release xca-*.tar.gz and setup_xca-*.exe
  collect the releases and the documentation

./git.publish
  Updates the binary-hashes
  Creates the "After release commit with updated version
  and binary hashes
  pushes the release as draft to github

./github.release.py
  Python script to automatically create the release on github
  and upload the assets
2018-03-13 21:17:29 +01:00

20 lines
308 B
Bash
Executable File

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