DEADSOFTWARE

Add kotlin bom dependency
[cavedroid.git] / gen-changelog.sh
1 #!/usr/bin/env bash
3 previous_tag=0
4 i=0
5 for current_tag in $(git tag --sort=-creatordate)
6 do
8 if [ "$previous_tag" != 0 ] && [ $i -lt 1 ]; then
9 i=$(echo "$i + 1" | bc -q )
10 tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${previous_tag})
11 printf "## ${previous_tag} (${tag_date})\n\n"
12 git log ${current_tag}...${previous_tag} --pretty=format:'* %s ' --reverse | grep -v Merge
13 printf "\n\n"
14 fi
15 previous_tag=${current_tag}
16 done