Nightly Snapshots From Subversion

I took the time to locate a script I wrote a few months ago. The Perl script keeps track of a project’s Subversion repository. When executed it attempts to do a check-out of the current code and it then parses through the commit log to see if it has already made a snapshot of the current revision.

If it hasn’t, it makes one and also generates a RSS feed with information about what the current revision is, who commited it and also an enclosure tag containing the URL for the snapshot itself.

Ideal for a cron-job, requires the Perl modules XML::Simple and XML::RSS which are available via CPAN for easy installation.

I will add commentaries to the code upon request. :D

Leave a Reply