Build: add test presets
[marnav.git] / bin / print-changelog
blob30625cc5fda69f6479f2bdc9ae41d047b8999f28
1 #!/bin/sh
3 tag_last=`git tag --list --sort="version:refname" | tail -n 1`
5 if [ $# -eq 0 ] ; then
6 echo ""
7 echo "Commits between tags: ${tag_last} .. HEAD"
8 echo ""
9 git log ${tag_last}.. --pretty=format:"%s" | sort
10 exit 0
13 TEMP=`getopt -o t -- "$@"`
14 eval set -- "${TEMP}"
15 while true ; do
16 case "$1" in
17 -t) # commit log between last two tags
18 echo ""
19 echo "Commits between tags: ${tag_second_last} .. ${tag_last}"
20 echo ""
21 tag_second_last=`git tag --list --sort="version:refname" | tail -n 2 | head -n 1`
22 git log ${tag_second_last}..${tag_last} --pretty=format:"%s" | sort
23 shift
26 *) break
28 esac
29 done