Hi developpers of Global,
Would it be possible to make global programs search for gtags.conf in
the configured --sysconfdir? It would ease the use in networked
environment where global is installed for all the network.
I'd suggest searching that place after the machine specific /etc/gtags.conf.
The modification to configpath in libutil/conf.c would be easy:
else if (test("r", OLD_DEBIANCONF))
strbuf_puts(sb, OLD_DEBIANCONF);
> else if (test("r", SYSCONFCONF))
> strbuf_puts(sb, SYSCONFCONF);
> else if (test("r", OLD_SYSCONFCONF))
> strbuf_puts(sb, OLD_SYSCONFCONF);
else
return NULL;
but my knowledge of autoconf is not good enough to arrange for configure
set SYSCONFCONF and OLD_SYSCONFCONF automatically.
Adding
#define SYSCONFCONF "@sysconfdir@/gtags.conf"
#define OLD_SYSCONFCONF "@sysconfgir@/global.conf"
to conf.h, renaming it conf.h.in and adding libutil/conf.h.in in
configure.ac doesn't work if one doesn't specify --sysconfdir
(sysconfdir is replaced by ${prefix}/etc instead of having ${prefix}
expanded).
Yours,
--
Jean-Marc Bourguet
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global