From: Lee Date: Sat, 27 Oct 2018 22:39:22 +0000 (-0400) Subject: add a program to turn git log output into a change log X-Git-Tag: v_3_0_27~29 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=6e91015537c9168f5b3c35f667c3983a2ea9e52c add a program to turn git log output into a change log --- diff --git a/utils/makeChangeLog b/utils/makeChangeLog new file mode 100755 index 00000000..79aa555d --- /dev/null +++ b/utils/makeChangeLog @@ -0,0 +1,23 @@ +#!/usr/bin/awk -f +# take output from +# git log [last release tag]..HEAD +# and reformat as a ChangeLog +BEGIN { + print "--------------------------------------------------------------------" + print "ChangeLog for Privoxy" + print "--------------------------------------------------------------------" + print "*** Version X.Y.ZZ stable unstable***\n" +} +/^commit / { new = 1; next } +/^Merge: / { next } +/^Author: / { next } +/^Date: / { next } +/^ *$/ { next } # ignore blank lines +/^ / { + if ( new ) { + new = 0 + sub("^ ", " -", $0); # 1st line of a change + } + print $0 +} +