[Mesa-dev] [PATCH 00/11] docs: html cleanup
Brian Paul
brianp at vmware.com
Wed Jun 13 09:04:30 PDT 2012
On 06/13/2012 01:37 AM, Andreas Boll wrote:
> 2012/6/13 Ian Romanick<idr at freedesktop.org>:
>> 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.
>>
>>
>
> Nice script!
>
> This diff fixes my complaints.
> Do you want to check this script with my modifications into the git repo?
>
> diff --git a/bin/shortlog_mesa.sh b/bin/shortlog_mesa.sh
> index 6825937..7ee1ab9 100755
> --- a/bin/shortlog_mesa.sh
> +++ b/bin/shortlog_mesa.sh
> @@ -6,15 +6,15 @@ typeset -i in_log=0
> git shortlog $* | while read l
> do
> if [ $in_log -eq 0 ]; then
> - echo '<p>'$l
> + echo '<p>'$l'</p>'
> echo '<ul>'
> in_log=1
> elif echo "$l" | egrep -q '^$' ; then
> - echo '</ul></p>'
> + echo '</ul>'
> echo
> in_log=0
> else
> - mesg=$(echo $l | sed 's/ (cherry picked from commit
> [0-9a-f]\+)//;s/\&/&/g;s/</\</g;s/>/\
> + mesg=$(echo $l | sed 's/ (cherry picked from commit
> [0-9a-f]\+)//;s/\&/&/g;s/</\</g;s/>/
> echo '<li>'${mesg}'</li>'
> fi
> done
Hmmm, the patch doesn't apply. It looks like the 3rd change's lines
are truncated.
Can you try again or post the entire patched script?
-Brian
More information about the mesa-dev
mailing list