[Top][All Lists]

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

Re: Global can't find GTAGS in link directory

From: Qiang Yu
Subject: Re: Global can't find GTAGS in link directory
Date: Sun, 9 Sep 2012 09:04:49 +0800

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:
/home/yuq/card1/{xserver, card1DDX}
/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
$ 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.


On Sun, Sep 9, 2012 at 7:40 AM, Shigio YAMAGUCHI <address@hidden> wrote:
> Hi,
> Here is my problem:
> $ ls
> dir1/ dir2/
> $ mkdir dir3
> $ cd dir3
> $ ln -s ../dir1 dir1
> $ ln -s ../dir2 dir2
> $ gtags
> $ ls
> $ 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 <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

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