svn status and ChangeLogs

Neil Williams linux at codehelp.co.uk
Mon Nov 21 14:27:54 EST 2005


I expect we've all got our own ways of creating ChangeLog entries, but I 
thought I'd offer this little script to do at least some of the work of 
getting the file list in a usable form.

#!/bin/bash
date=`date +%Y-%m-%d`
svn status | cut -d" " -f7 > t
sed < t > tt -e 's:^:\t* :g'
sed < tt > t -e 's:$: \: :g'
sort < t > tt
echo "$date  Neil Williams <linux at codehelp.co.uk>" > t
echo "" >> t
cat tt >> t
rm tt

Final content is in the file: t

e.g.
2005-11-21  Neil Williams <linux at codehelp.co.uk>

        * src/app-utils/gnc-component-manager.h :
        * src/app-utils/gnc-euro.h :
        * src/app-utils/gnc-exp-parser.h :
        * src/app-utils/gnc-ui-util.h :


Easily improved to accept a name and email on the command line but it's not as 
if those details change often so they might as well be changed in the echo 
line.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20051121/4481f113/attachment.bin


More information about the gnucash-devel mailing list