gnucash/util/svnlog2ul/svnlog2ul.sh
Geert Janssens 9e1e1bea8a Moved svnlog2ul from contrib to util
It makes more sense in util as it is by and for the devs, not
contributed by an external user for external use.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18627 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-08 17:59:15 +00:00

30 lines
969 B
Bash
Executable File

#! /bin/bash
#
# svnlog2ul.sh <prevrelease> <newrelease>
#
# This script will extract all the svn commit messages
# from the repository between two releases.
# The result will be printed on standard out as a
# html unordered list ("bulleted list").
#
# Parameters:
#
# <prevrelease> : the svn tag for the release to start
# the commit message search
# <newrelease> : the svn tag for the release to end
# the commit message search
#
# The search will return all commit messages between
# <prevrelease> and <newrelease>
#
# Example:
#
# svnlog2ul.sh 2.3.7 2.3.8
oldrelease=$1
newrelease=$2
oldrev=$(svn info --xml http://svn.gnucash.org/repo/gnucash/tags/$oldrelease | xsltproc getlastcommit.xslt -)
newrev=$(svn info --xml http://svn.gnucash.org/repo/gnucash/tags/$newrelease | xsltproc getlastcommit.xslt -)
svn log -r$newrev:$oldrev --xml http://svn.gnucash.org/repo/gnucash/tags/$newrelease | xsltproc log2ul.xslt -