Last year, when I first released bzr-feed for generating an Atom feed for a Bazaar repository, I added an item to the TODO almost while writing the first lines:
* Add RDF/XML output with DOAP support
Just now, I removed that item, not because I updated bzr-feed, but because I have created a new Python script for generating DOAP using the same technique: bzr-doap.
Usage is quite simple — simply add something along the following lines to your .htaccess
file, and you’re good to go (presuming the usual cgi-bin stuff is in order):
RewriteCond %{REQUEST_FILENAME} !-s RewriteRule (.*).rdf$ bzr-doap.cgi?dir=$1
Output is generated based on the information present in the bzr branch, but it can be augmented/overridden through the use of a .doaprc
in the current and/or parent directory, like this:
[Project] short_desc: DOAP generator for a Bazaar repository branch. description: A CGI script for automatically generating DOAP for a Bazaar repository branch. programming-language: Python license: http://usefulinc.com/doap/licenses/python [Maintainer] foaf_homepage: http://www.wasab.dk/morten/
There is of course a DOAP for bzr-doap, and as usual an Atom feed for you to follow its development in its Bazaar repository.