[Top][All Lists]

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

Re: generating one tags database for multiple sub-projects

From: vg23
Subject: Re: generating one tags database for multiple sub-projects
Date: Fri, 21 Sep 2001 09:43:09 -0400 (EDT)

Thanks, this does indeed solve the problem!
One lesser issue remains though (not so much a problem as an
inconvenience, really). the common root directory mentioned in my 
description happens to be /usr/local (I have no control over this, 
unfortunately), and contains over 20 directories, of which only 3 are 
relevant to my work. Granted, I can list the remaining 18+ directories in 
the :skip lines, but doing so is a bit cumbersome; is there any way to 
specify which directories I do want, instead? :)
Again, thanks for your help.

On Fri, 21 Sep 2001, Shigio Yamaguchi wrote:

> Hello,
> > In the code that I have to work with, there are a number of subprojects 
> > that are located in separate source trees, an arragement of the 
> > following form:
> > commonroot/project1/devel/src/(a source tree here)
> > commonroot/project2/devel/src/(another tree)
> > commonroot/library3/src/(a yet another tree)
> > and so forth. 
> ...
> > Unfortunately, I do not have the permission to write into commonroot!
> > (furthermore, even if i did--there are other (large) projects in the 
> > commonroot that I don;t need to be included in the tags database). I tried 
> > setting up another directory containing symlinks to the appropriate 
> > project source trees, but running gtags from there produced an small file 
> > that had no  symbols in it (I guess it doesn't follow symlinks?).
> It seems that you have two trouble.
> [trouble1] You cannot make tag files in the root directory of source tree.
>       Two environment variable GTAGSROOT and GTAGSDBPATH are available.
>       making tag files:
>               % cd /xxx/commonroot
>               % gtags /var/tmp                <= make tag files in /var/tmp
>       using tag files:
>               % setenv GTAGSROOT /xxx/commonroot
>               % setenv GTAGSDBPATH /var/tmp
>               % global -x main
>       Please see online manual in the details.
> [trouble2] You cannot skip specified directories.
>       Skip variable is available.
>       GLOBAL package includes the configuration file as 'gtags.conf'
>       or 'global.conf'. Copy it to your home directory and setup like this:
>       % cp gtags.conf $HOME/.globalrc
>       % vi $HOME/.globalrc
>               |
>               v
>                                                         ~~~~~~~~~~~~~~~~~~~~
>                                                          skipped directories
> Good luck!
> --
> Shigio Yamaguchi - Tama Communications Corporation
> Mail: address@hidden, (Spare mail: address@hidden)

reply via email to

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