#!/usr/bin/env bash set -euo pipefail version=$(awk -F '"' '$1 ~ /^version = / { print $2; exit }' Cargo.toml) tag="v${version}" dist=dist checksums="$dist/SHA256SUMS.txt" notes=$(mktemp) trap 'rm -f "$notes"' EXIT [[ -f "$checksums" ]] || { echo "Missing $checksums; run scripts/package-release.sh first." >&2; exit 1; } cat > "$notes" <