Skip to content

Commit

Permalink
Refactor binary releasing script
Browse files Browse the repository at this point in the history
  • Loading branch information
mp4096 committed Mar 7, 2018
1 parent 2380f66 commit 0564638
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions make_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ rm -f \
# $1 File to be hashed
# $2 Target filename
function generate_digests {
local SHA_256_DIGEST=$(sha256sum $1)
local SHA_512_DIGEST=$(sha512sum $1)
printf '%b\n' >> "$2" \
'SHA256 digest:\n' \
'```' \
"$SHA_256_DIGEST" \
'```\n' \
'SHA512 digest:\n' \
'```' \
"$SHA_512_DIGEST" \
'```'
local SHA_256_DIGEST=$(sha256sum $1)
local SHA_512_DIGEST=$(sha512sum $1)
cat >> "$2" <<EOF
SHA256 digest:
\`\`\`
$SHA_256_DIGEST
\`\`\`
SHA512 digest:
\`\`\`
$SHA_512_DIGEST
\`\`\`
EOF
}

cat >> "$RELEASE_INFO" <<EOF
Expand Down

0 comments on commit 0564638

Please sign in to comment.