[Mesa-dev] [PATCH 00/11] docs: html cleanup
Ian Romanick
idr at freedesktop.org
Tue Jun 12 19:50:19 PDT 2012
On 06/11/2012 09:06 AM, Brian Paul wrote:
> On 06/10/2012 04:57 AM, Andreas Boll wrote:
>> @ release manager
>> Is there a script for converting the git shortlog into html in
>> relnotes-*.html or are they converted by hand?
>> The reason I'm asking is that not all html special chars are correctly
>> escaped and the changes are not well-formed.
>
> I'm not sure how Ian's been doing that. If any sort of git/sh script is
> used, it should probably be checked into the tree or documented with the
> rest of the new-release instructions.
>
> Ian?
I have a script, which I've attached. It's not perfect, but it seems to
work pretty well.
-------------- next part --------------
#!/bin/sh
typeset -i in_log=0
git shortlog $* | while read l
do
if [ $in_log -eq 0 ]; then
echo '<p>'$l
echo '<ul>'
in_log=1
elif echo "$l" | egrep -q '^$' ; then
echo '</ul></p>'
echo
in_log=0
else
mesg=$(echo $l | sed 's/ (cherry picked from commit [0-9a-f]\+)//;s/\&/&/g;s/</\</g;s/>/\>/g')
echo ' <li>'${mesg}'</li>'
fi
done
More information about the mesa-dev
mailing list