Here's a tarball snapshot of the source that generates the
Build Recipes Reference.

http://blogs.sun.com/eric_boutilier/resource/buildrecipesreference.tar.gz

I added some comments to the (perl) scripts, and a readme file. The
contents of the readme is also included below.

For general background on this project, here's a pointer to
my original posts:

http://mail.opensolaris.org/pipermail/desktop-discuss/2007-April/005785.html
http://mail.opensolaris.org/pipermail/desktop-discuss/2007-April/005806.html

And here's the page itself:
     http://genunix.org/wiki/index.php/BuildRecipesReference

Recent changes include fixes to a few bad URLs, and the addition of a
link to the OpenSolaris Xfce project spec files directory.

Eric

-------------------------------------------------------------------------------

README contents:

To get a general idea of the scripts and input files:

First, look at the files in the "lists" directory, sfe, ccd, jds, gar, sfw,
and pmpkg. The base idea of this project is to match the names in these six
files against the freshmeat master index's project_shortname data (unique ID).

Next, grok the (short) genpage perl script. There are a few comments in 
key places.

You'll see that the main loop in genpage builds from the data in a table
file, called table... look at that next. Then look at the (really short)
script that generates it, `gentable'. (Note that this interim table file is
actually pretty useful in its own right.) You'll see that gentable builds
on data in the files contained in the "lists" directory noted above,
namely: sfe, ccd, jds, gar, sfw, and pmpkg.

That should give you a really good general idea of what's going on here.
The mapping stuff (in case you want to grok that as well) and how its
generated gets a little tricky (but not bad really). In short, here's why
the mapping stuff is needed and why its not as trivial to implement: The
genpage script needs a consistent way to contruct the rightmost part of the
URLs that link to the 450+ recipes. And we're working with four different
ways recipes are organized (sfw/ccd, jds/sfe, pmpkg, and gar). So things
get a little tricky.

-------------------------------------------------------------------------------

Reply via email to