[Lxr-dev] lxr-0.3.1 does not allow version-name that contains the char, '_'
Brought to you by:
ajlittoz
From: Yi-Shin Li <yi...@si...> - 2003-07-09 04:03:33
|
LXR version: 0.3.1 I use gentoo linux. Per its naming rule, I got linux-2.4.21_rc8-gss in /usr/src I can not use LXR-0.3.1 to cross reference it. Reason: The varexpand(), from file, $(INSTALLPREFIX)/http/lib/LXR/Config.pm, only accept variables within /^([a-zA-Z0-9\.\-]*)$/. Therefore, my "linux-2.4.21_rc8-gss" is filtered out. I modified it by adding '_' and it works for me. my revised varexpand() : sub varexpand { my ($self, $exp) = @_; $exp =~ s{\$\{?(\w+)\}?}{ $self->{variable}->{$1} =~ /^([a-zA-Z0-9\.\-_]*)$/ ? $1 : '' }ge; return($exp); } Yi-Shin |