mesa: added Ian's shortlog_mesa.sh script in bin/
authorBrian Paul <brianp@vmware.com>
Thu, 14 Jun 2012 14:22:54 +0000 (08:22 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 14 Jun 2012 14:22:54 +0000 (08:22 -0600)
bin/shortlog_mesa.sh [new file with mode: 0755]

diff --git a/bin/shortlog_mesa.sh b/bin/shortlog_mesa.sh
new file mode 100755 (executable)
index 0000000..1e1ef26
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# This script is used to generate the list of changes that
+# appears in the release notes files, with HTML formatting.
+
+
+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/\&/&amp;/g;s/</\&lt/g;s/>/\&gt;/g')
+       echo '  <li>'${mesg}'</li>'
+    fi
+done