Re: add different folders to global database

"Shigio YAMAGUCHI" <[email protected]> Fri, 30 Dec 2011 07:15:28 +0900
Newsgroups gmane.comp.gnu.global.general
Message-ID <[email protected]>
Hello,
> how to add different folders in different paths in to global database.
> basically i am looking for "cscope -s" kind of option. is it possible ?

GLOBAL cannot treat other than projects.

Supposing $dir is the different folder

1. If you want to treat $dir as an external project,
   you can use GTAGSLIBPATH.

        $ cd $dir
        $ gtags
        $ export GTAGSLIBPATH=$dir

2. If you want to treat $dir as part of the current project,
   you can use symbolic link.

        $ ln -s $dir .
        $ gtags

   Note: please use the latest GLOBAL. Old global ignored symbolic links.

Shigio
--
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3