# /bin/bash # Usage: ./scripts/generate-changelog.sh v1.2 "April 01, 2021" # or: ./scripts/generate-changelog.sh vUNSTABLE set -e VERSION="$1" DATE="$2" cd `dirname $0`/../changelogs # Pre-cleanup just in case it wasn't done on the last run rm -f rendered.md # Generate changelog towncrier --yes { # Prepare the header # We include the generation date in the front matter so that we can use it # to sort the changelogs at build time. cat < ../content/changelog/$VERSION.md # Cleanup rm -v rendered.md