diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-25 23:07:31 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-25 23:07:31 +0200 |
commit | f9b4b43fd7d8f027c392ed9e1ea755a7443c16b7 (patch) | |
tree | 282e1c45c983c481640a5872c4afc056fe3284b9 /Makefile.am | |
parent | 321d8a3574ca9165e882eae1035d4924d786af95 (diff) |
Have a nicer way of generating the ChangeLog
This adds the commit id, improves the line wrapping and also gets rid of
the external dependency.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index e721326..c98c9fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,8 +69,11 @@ dist-hook: # target for generating the ChangeLog file changelog: - git log --pretty --numstat --summary '47f7fd10f87bfcb5240cf5b794ce9380bf671044...' | \ - grep -v 'git-svn-id:' | git2cl > ChangeLog + git log --date=short --name-only \ + --format="%x0c%ad %aN <%aE>%n%n%x09* [%h]%x00%s%n%x00%+b%x00" \ + 47f7fd10f87bfcb5240cf5b794ce9380bf671044... | \ + awk 'BEGIN { RS="\f"; FS="\0" } { if ($$1) { gsub(/\n*$$/, "", $$4); gsub(/^\n*/, "", $$4); gsub(/\n/, ", ", $$4); gsub(/\n/, "\n\t ", $$3); print $$1 " " $$4 ": "; print "\t " $$2 $$3 }}' | \ + fmt --width=78 -c > ChangeLog flawfinder.html: flawfinder --quiet --html --context --followdotdir . > $@ |