From 6e91015537c9168f5b3c35f667c3983a2ea9e52c Mon Sep 17 00:00:00 2001 From: Lee Date: Sat, 27 Oct 2018 18:39:22 -0400 Subject: [PATCH] add a program to turn git log output into a change log --- utils/makeChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 utils/makeChangeLog 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 +} + -- 2.39.2