add different folders to global database

View: New views
2 Messages — Rating Filter:   Alert me  

add different folders to global database

by jack sparrow-2 :: Rate this Message:

| View Threaded | Show Only this Message

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 ?

cheers
jack


_______________________________________________
Help-global mailing list
Help-global@...
https://lists.gnu.org/mailman/listinfo/help-global

Re: add different folders to global database

by Shigio YAMAGUCHI-2 :: Rate this Message:

| View Threaded | Show Only this Message

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 <shigio@...>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

_______________________________________________
Help-global mailing list
Help-global@...
https://lists.gnu.org/mailman/listinfo/help-global