Hi Shigio,

Thanks for your help. The export method works.

The reason why I do this is I'm working on the X11 code base which has many
modules. Some of them can be reused but some should be one for each. For
example: the xserver/ is common for every machine, but many DDX drivers are
for dedicated cards.

I want each module has only one copy on disk and several modules form a
source tree for a card. So I use link directory like this:
Card1:
/home/yuq/card1/{xserver, card1DDX}
Card2:
/home/yuq/card2{xserver, card2DDX}

xserver/ and card*DDX/ are all symbolic link to their directories. So I can
create
gtags on each card directory. It seems the reason why my method doesn't work
is:
$ cd dir3/dir1
$ ls ..
dir1/ dir2/ dir3/

The link directory can't go upwards correctly for global to find gtags.
Does this
have solution so that I don't need to switch GTAGSROOT each time when I
switch card
source tree?

Here is another question: can global combine many gtags? For example, create
gtags for xserver once, then for every card's DDX, combine them to form a
card source
tree? So I can just update xserver's gtags once for every card source tree.

Regards,
yuq

On Sun, Sep 9, 2012 at 7:40 AM, Shigio YAMAGUCHI <[email protected]> wrote:

> Hi,
> > Hi,
> >
> > Here is my problem:
> >
> > $ ls
> > dir1/ dir2/
> > $ mkdir dir3
> > $ cd dir3
> > $ ln -s ../dir1 dir1
> > $ ln -s ../dir2 dir2
> > $ gtags
> > $ ls
> > dir1/ dir2/ GPATH  GRTAGS  GSYMS  GTAGS
> > $ global -p
> > /home/yuq/dir3
> > $ cd dir1
> > $ global -p
> > global: GTAGS not found.
> >
> > My OS is Ubuntu 12.04, global is 5.7.1.
>
> Symbolic link is such a thing. Why do you make
> tag files at /home/yuq?
>
> Or there is also the following method.
>
> $ export GTAGSROOT=/home/yuq/dir3
>
> Good luck!
> --
> Shigio YAMAGUCHI <[email protected]>
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
>
_______________________________________________
Help-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-global

Reply via email to