bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling of the .globalrc file


From: Shigio Yamaguchi
Subject: Re: Handling of the .globalrc file
Date: Sat, 28 Jul 2001 03:23:08 +0900

Hi,
> In using bless.sh to move the location of the indexed html files, the 
> command
>     gtags --config script_alais
> is used.
> 
> This pulls out of the config file (in my case) /cgi-bin
> 
> The problem is if I only have a line .globalrc file
> default:script_alais=/cgi-bin:

OK.
Bless.sh didn't use htags's default value of 'script_alias'.
So, without config file which include 'script_alias', we couldn't use bless.sh.
I think it is the reason why you make .globalrc file which include just
'script_alias'.
I have fixed this bug in CVS version.
Fixed method is like this:

-----------------------------------------------------------------
[htags.pl]
-----------------------------------------------------------------
...
$'script_alias = '/cgi-bin';                    <- default value
...
if ($var1 = &'getconf('script_alias')) {        <- load from config file if any
        $'script_alias = $var1;
        $'script_alias =~ s!/$!!;
}
...
#
# makebless: create 'bless.sh' file.
#
sub makebless {
        local($file) = @_;
        local($action) = "$'script_alias/global.cgi";   <- construct action
...
(Use $action as ACTION=XXX instead of `gtags --config script_alais`.)

> it appears gtags does not work because none of the defaults are set.
> 
> In openconf (libutil/open.c) perhaps if the logic was reworked to set all 
> the defaults, then load the user/system rc file to overload the defaults, 
> the user would not need a complete set of entries in their rc file.
> 
> Right now I delete my .globalrc file, run gtags & htags then move my files 
> to their final destination.  Recreate the oneline .golbalrc file and run 
> bless in the various subdirectores.

Config variable GTAGS, GRTAGS and GSYMS don't have default value, because
GLOBAL doesn't know which parser are available.
For example, we can use etags which is the tag command for Emacs
as a parser of GLOBAL. But etags doesn't have neither -r nor -s option.
So we cannot define GRTAGS and GSYMS variable in config file.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]