• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7typeset -i in_log=0
8
9git shortlog $* | while read l
10do
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/\&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g')
21	echo '  <li>'${mesg}'</li>'
22    fi
23done
24