[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The globalrc file
From: |
Suresh Govindachar |
Subject: |
The globalrc file |
Date: |
Wed, 11 Jun 2014 21:24:31 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Hello,
Am having trouble getting global to read and use .globalrc file. Here
are the steps:
1) copied <install_dir>/share/gtags/gtags.conf to
c:\home\suresh\.globalrc
2) set GTAGSCONF=c:\home\suresh\.globalrc
3) modified c:\home\suresh\.globalrc by adding 3 lines to specify
GTAGSDBPATH, GTAGSFORCECPP, and GTAGSROOT as follows:
gtags:\
:GTAGSDBPATH=c\:\\tmp:\
:GTAGSFORCECPP\
:GTAGSROOT=c\:\\home\\suresh:\
:tc=common:\
:tc=builtin-parser:
builtin-parser:\
4) touch c:\tmp\GTAGS
5) cd c:\tmp
6) c:\tmp>c:\opt\global\bin\global.exe -p -v
checking c:/tmp/GTAGS
GTAGS found at 'c:/tmp/GTAGS'.
7) cd c:\home\suresh
8) c:\home\suresh>c:\opt\global\bin\global.exe -p -v
checking c:/home/suresh/GTAGS
checking c:/home/suresh/obj/GTAGS
checking c:/home/GTAGS
checking c:/home/obj/GTAGS
checking c://GTAGS
checking c://obj/GTAGS
global: GTAGS not found.
9) c:\home\suresh>c:\opt\global\bin\global.exe -p -v --gtagsconf
.globalrc
c:\opt\global\bin\global.exe: unrecognized option '--gtagsconf'
Usage: global [-aCdEGilmnNqrsStTvx][-e] pattern
global -c[diImNoOPrsT] prefix
global -f[aCdlnqrsStvx][-L file-list] files
global -g[aCEGilmnoOqStvVx][-L file-list][-e] pattern [files]
global -I[aCilmnqStvx][-e] pattern
global -P[aCEGilmnoOqStvVx][-e] pattern
global -p[qrv]
global -u[qv]
Questions:
(A) In step 8, why wasn't value of GTAGSDBPATH and GTAGSROOT specified
in .globalrc files used?
(B) In step 9, why didn't global accept --gtagsconf option?
Thanks,
--Suresh
- The globalrc file,
Suresh Govindachar <=