[Lxr-general] Multiple configurations question
Brought to you by:
ajlittoz
|
From: Robert D. P. <ROB...@sa...> - 2009-11-18 03:53:01
|
Hi,
I've installed lxr-0.9.6 on a Gentoo system and have some configuration
issues that I'm hoping someone familiar with lxr can quickly answer.
I can set up lxr to cross reference a single source directory tree and
it works like a charm. What I'd like to do though is have lxr
cross-reference multiple separate source trees and present this through
different urls. I'm looking for recommendations on the right way to do
this.
Clearly, lxr.conf can hold multiple configuration sections that are
matched against the 'baseurl' or 'baseurl_aliases' for each section.
However, I can't quite work out the correct variable values to get the
multiple configuration setup to work.
I currently have lxr installed under /var/www/localhost/htdocs/lxr
My lxr.conf for indexing a single source tree (only one version)
in /usr/local/src/metis-4.0 is set up as:
{
'baseurl' => 'http://localhost/lxr'
'virtroot' => '/lxr',
'variables' => {
'v' => {
'name' => 'Version',
'range' => [sq(metis-4.0)],
'default' => 'metis-4.0'
},
....
'sourceroot' => '/usr/local/src',
}
... and this all works fine. (Probably I should have sourceroot
=> /usr/local/src/metis-4.0 and the version => '', but that's probably
not relevant to this.)
I can ./genxref --url=http://localhost/lxr to generate the cross
references then browse to http://localhost/lxr/source to view the
directories and cross-referenced files.
What I'd like to be able to do is access different source trees through
different urls. Something like:
http://localhost/lxr/source/metis
http://localhost/lxr/source/geant
Is this possible?
I obviously could just duplicate the script directories.... create
something like:
/var/www/localhost/htdocs/lxr/metis
/var/www/localhost/htdocs/lxr/geant
and "cp -r" the various scripts like source, find, genxref,ident,
search and *.html to the duplicate directories. Or, I could even just
symlink them. Or, for that matter, I could symlink the various source
tree directories together under one root directory and index this.
However, the fact that lxr.conf handles multiple configuration sections
makes me think there should be a more elegant way to set this up.
I can
./genxref --url=http://localhost/lxr/source/metis
./genxref --url=/var/www/localhost/lxr/source/geant
and generate the appropriate indexes. However, when I try to access
http://localhost/lxr/source/metis
the path to the file or directory being looked for typically has a
spurious extra "metis" or "geant" in it.
Is there some trick I'm missing?
What would be fabulous is a sample lxr.conf with multiple configurations
in it and the corresponding cgi script directory layout to match.
Thanks,
--
Robert D. Penny <rob...@sa...>
|