add a program to turn git log output into a change log
[privoxy.git] / utils / makeChangeLog
1 #!/usr/bin/awk -f
2 # take output from
3 #   git log [last release tag]..HEAD
4 # and reformat as a ChangeLog
5 BEGIN {
6    print "--------------------------------------------------------------------"
7    print "ChangeLog for Privoxy"
8    print "--------------------------------------------------------------------"
9    print "*** Version X.Y.ZZ stable unstable***\n"
10 }
11 /^commit /  { new = 1; next }
12 /^Merge: /  { next }
13 /^Author: / { next }
14 /^Date: /   { next }
15 /^  *$/     { next } # ignore blank lines
16 /^ / {
17     if ( new ) {
18         new = 0
19         sub("^   ", "  -", $0); # 1st line of a change
20     }
21     print $0
22 }
23