Permalink
Browse files

Generate nicer ChangeLog

  • Loading branch information...
hroncok committed Jul 20, 2014
1 parent 940a627 commit 9ab0069a9d55d6b27d00ec53539b82cca88bb38c
Showing with 14 additions and 1 deletion.
  1. +1 −1 Makefile.am
  2. +13 −0 fortag.sh
View
@@ -57,6 +57,6 @@ AUTHORS:
git log --format='%aN <%aE>' | sort -u > $@
ChangeLog:
git log --date=short --pretty="format:@%cd %an <%ae> [%H]%n%n%s%n%n%e%b" | sed -e "s|^\([^@]\)|\t\1|" -e "s|^@||" >$@
./fortag.sh >$@
dist-hook: AUTHORS ChangeLog
View
@@ -0,0 +1,13 @@
#!/bin/bash
lasttag=''
total=''
for tag in `git tag`; do
if [[ x$lasttag != x ]]; then
e="${tag#v}: "
e="$e`git --no-pager log -1 --format=%ai $tag`\n\n"
e="$e`git --no-pager log --pretty=\"format: * %s\" $lasttag..$tag`\n\n"
total="$e$total"
fi
lasttag=$tag
done
echo -en "$total"

0 comments on commit 9ab0069

Please sign in to comment.