1 #!/bin/bash 2 3 # This script is used to generate the list of changes that 4 # appears in the release notes files, with HTML formatting. 5 6 7 typeset -i in_log=0 8 9 git shortlog $* | while read l 10 do 11 if [ $in_log -eq 0 ]; then 12 echo '<p>'$l'</p>' 13 echo '<ul>' 14 in_log=1 15 elif echo "$l" | egrep -q '^$' ; then 16 echo '</ul>' 17 echo 18 in_log=0 19 else 20 mesg=$(echo $l | sed 's/ (cherry picked from commit [0-9a-f]\+)//;s/\&/&/g;s/</\</g;s/>/\>/g') 21 echo ' <li>'${mesg}'</li>' 22 fi 23 done 24