add a program to turn git log output into a change log
authorLee <ler762@users.sourceforge.net>
Sat, 27 Oct 2018 22:39:22 +0000 (18:39 -0400)
committerLee <ler762@users.sourceforge.net>
Sat, 27 Oct 2018 22:39:22 +0000 (18:39 -0400)
utils/makeChangeLog [new file with mode: 0755]

diff --git a/utils/makeChangeLog b/utils/makeChangeLog
new file mode 100755 (executable)
index 0000000..79aa555
--- /dev/null
@@ -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
+}
+