ghcup/generate_changelog.sh

12 lines
392 B
Bash
Raw Normal View History

2020-01-09 19:40:08 +00:00
#!/bin/sh
printf "# ChangeLog\n\n"
for current_tag in $(git tag --sort=-creatordate) ; do
tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${current_tag})
2020-01-09 19:44:20 +00:00
printf "## [${current_tag}](https://gitlab.haskell.org/haskell/ghcup/-/tags/${current_tag}) (${tag_date})\n\n"
2020-01-09 19:40:08 +00:00
git --no-pager tag -l --format='%(contents)' ${current_tag} | sed -e '/BEGIN PGP/,$d'
printf "\n\n"
done