From: Pieter Lexis Date: Tue, 19 Aug 2014 13:16:54 +0000 (+0200) Subject: Alter the git-to-changelog script X-Git-Tag: rec-3.7.0-rc1~161^2^2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=062ea9401e5567e1a16f0855125d09493fc405f1;p=thirdparty%2Fpdns.git Alter the git-to-changelog script It now converts to markdown --- diff --git a/build-scripts/git-to-changelog b/build-scripts/git-to-changelog index 53fd6056ac..a474dbb87d 100755 --- a/build-scripts/git-to-changelog +++ b/build-scripts/git-to-changelog @@ -1,13 +1,8 @@ #!/bin/sh -# two modes of operation: -# 1) git-to-changelog auth-3.3.1.. > log.xml -# then edit XML and insert into pdns.xml -# 2) git log --pretty=format:'g%h: %s' auth-3.3.1.. > log.txt -# then edit changelog as plain text -# then run git-to-changelog - < log.txt > log.xml -if [ "$1" = "-" ] ; then cat ; else git log --pretty=format:'g%h: %s' "$@" ; fi | perl -pe 's/\#(\d+)/t$1/g; s/(.*)/ - - $1 - <\/para> -<\/listitem>/;' +if [ "$1" = "-" ]; then + cat +else + git log --pretty=format:'- [commit %h](https://github.com/PowerDNS/pdns/commit/%h): %s' "$@" |\ + sed -r 's!#([[:digit:]]+)![ticket #\1](https://github.com/PowerDNS/pdns/issues/\1)!g;' +fi