From: Peter van Dijk Date: Wed, 30 Jul 2014 17:06:37 +0000 (+0200) Subject: allow two-step changelog generation, for easier editing X-Git-Tag: auth-3.4.0-rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d3b3c2586b8d4bacf968bf7a311ae16d9d76aba;p=thirdparty%2Fpdns.git allow two-step changelog generation, for easier editing --- diff --git a/build-scripts/git-to-changelog b/build-scripts/git-to-changelog index 8100a7ded9..53fd6056ac 100755 --- a/build-scripts/git-to-changelog +++ b/build-scripts/git-to-changelog @@ -1,6 +1,13 @@ #!/bin/sh -git log --pretty=format:' +# 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/(.*)/ - g%h: %s - -' "$@" | perl -pe 's/\#(\d+)/t$1/g' + $1 + <\/para> +<\/listitem>/;'