Add script to turn CHANGES into markdown for bodhi.

This commit is contained in:
Joe Orton 2015-09-25 13:29:29 +01:00
parent 43cb7cd92b
commit 683bd34be9
1 changed files with 24 additions and 0 deletions

24
clog2markdown Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
version=$1
echo "This update includes the latest stable release of _Apache Subversion_, version **${1}**".
echo
curl --silent -n "http://svn.apache.org/repos/asf/subversion/tags/$1/CHANGES" | \
sed -n '
4,/Version/{
s/(r[0-9, retal]*)\;*//g;
s,issue #\([0-9]*\), [issue \1](http://subversion.tigris.org/issues/show_bug.cgi?id=\1),;
s/^ *//;
s/ +/ /g;
s/^ *- \(.*\)$/#### \1/;
s/\(.*visible changes.*:\)$/### \1/;
/^ *$/d;
/Windows/d
/^Version /d
s,(r1.*),,g
s,\(@[0-9]*\),\\\1,g
p;
}
' -