[Lxr-general] installing LXR
Brought to you by:
ajlittoz
From: Guido S. <cau...@ya...> - 2002-01-20 05:14:30
|
I just downloaded and installed LXR-0.9 but had to do quite a bit of research and patching to get it working to my satisfaction. I have written a new INSTALL document to help others with the process as well as a small patch, which is needed to munge glimpse URLs so that searches for files from a CVS repository result in URLs that send the browser to the correct file instead of giving a file not found message. --- lxr/search Tue Oct 16 20:38:37 2001 +++ search Sun Jan 20 05:13:12 2002 @@ -99,6 +99,12 @@ $text =~ s/</</g; $text =~ s/>/>/g; + $strip = $config->strip; + $strip =~ s/\//\\\//g; + + $rex = qr{$strip}; + $file =~ s/$strip//; + print(&fileref("$file, line $line", "find-file", "/$file", $line), " -- $text<br>\n"); To use this patch, add the following to your lxr.conf 'strip' => '/usr/local/lxr/my_project' where my_project is a checked out version of the CVS project. Attached is an expanded INSTALL document. Thanks for LXR! |