[RFC] Dynamic ChangeLog generation script (was Re: [augeas-devel] ChangeLog)

Jeff Schroeder jeffschroed at gmail.com
Mon Jun 23 20:46:55 UTC 2008


On Mon, Jun 23, 2008 at 1:05 PM, David Lutterkort <dlutter at redhat.com> wrote:
> On Mon, 2008-06-23 at 11:08 -0700, Jeff Schroeder wrote:
>> On Sun, Jun 22, 2008 at 9:19 AM, Jeff Schroeder <jeffschroed at gmail.com> wrote:
>> > On Sun, Jun 22, 2008 at 1:31 AM, Nicolas Valcarcel
>> > <nvalcarcel at ubuntu.com> wrote:
>> >> Hi!
>> >>        I have noticed that the ChangeLog entry on the source it's empty, it
>> >> will be really cool if we get track of the changes in there so everyone
>> >> knows what's new, so if you are going to change things please use it!
>> >
>> > hg log works pretty well for now :)
>> >
>>
>> A post on planet.gnome.org told me about an auto-changelog generation
>> script hooked into 'make distcheck' for gnome-games. Looking at how they
>> did it found these two interesting bits of code:
>> http://svn.gnome.org/viewvc/gnome-games/trunk/Makefile.am?r1=7698&r2=7722
>> http://svn.gnome.org/viewvc/gnome-games/trunk/svn2cl.xsl?view=markup&pathrev=7724
>>
>> hg log doesn't seem to support any sort of xml output. This would
>> still be easy to do in
>> perl or shell and generate something equivalent. Writing a clean
>> utility that uses getopt
>> and does sane error checking shouldn't take more than a few hours tops
>> in either language.
>>
>> David, would you prefer this being done in perl or shell? If it is
>> perl, a build-dep on perl
>> would have to be added.
>
> I think it can be much simpler than that: 'hg log --style changelog'
> looks pretty good. And that wouldn't introduce any more requirements for
> hackers to install additional stuff.
>
> And yeah, it should be hooked into 'make dist'.

Quick patch attached. If gmail messes it up you can see it here:
http://www.digitalprognosis.com/opensource/patches/augeas/augeas-auto-generate-ChangeLog.patch

Not sure if you want any sort of error checking or whatnot, but that
works to generate
the ChangeLog file from the vcs logs. FYI: make distcheck fails on tip.

make[1]: Entering directory `/home/jeff/svn/software/augeas/gnulib/lib'
make[1]: Leaving directory `/home/jeff/svn/software/augeas/gnulib/lib'
make[1]: Entering directory `/home/jeff/svn/software/augeas/src'
/bin/bash ../build/aux/ylwrap lexer.l .c lexer.c -- :
make[1]: *** [lexer.c] Error 1
make[1]: Leaving directory `/home/jeff/svn/software/augeas/src'
make: *** [distdir] Error 1


-- 
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: augeas-auto-generate-ChangeLog.patch
Type: text/x-diff
Size: 477 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080623/02ad3c08/attachment.bin>


More information about the augeas-devel mailing list