992 |
set_env("GTAGSCONF", real); |
set_env("GTAGSCONF", real); |
993 |
} |
} |
994 |
if (label) |
if (label) |
995 |
set_env("GTAGSLABEL", gtagslabel); |
set_env("GTAGSLABEL", label); |
996 |
} |
} |
997 |
/* |
/* |
998 |
* Config variables. |
* Config variables. |
1452 |
else if (!strcmp("cvsweb-cvsroot", long_options[option_index].name)) |
else if (!strcmp("cvsweb-cvsroot", long_options[option_index].name)) |
1453 |
cvsweb_cvsroot = optarg; |
cvsweb_cvsroot = optarg; |
1454 |
else if (!strcmp("gtagsconf", long_options[option_index].name)) |
else if (!strcmp("gtagsconf", long_options[option_index].name)) |
1455 |
strlimcpy(gtagsconf, optarg, sizeof(gtagsconf)); |
; /* --gtagsconf is estimated only once. */ |
1456 |
else if (!strcmp("gtagslabel", long_options[option_index].name)) |
else if (!strcmp("gtagslabel", long_options[option_index].name)) |
1457 |
gtagslabel = optarg; |
; /* --gtagslabel is estimated only once. */ |
1458 |
else if (!strcmp("style-sheet", long_options[option_index].name)) |
else if (!strcmp("style-sheet", long_options[option_index].name)) |
1459 |
style_sheet = optarg; |
style_sheet = optarg; |
1460 |
break; |
break; |
1633 |
if (realpath(dbpath, buf) == NULL) |
if (realpath(dbpath, buf) == NULL) |
1634 |
die("cannot get realpath of dbpath."); |
die("cannot get realpath of dbpath."); |
1635 |
strlimcpy(dbpath, buf, sizeof(dbpath)); |
strlimcpy(dbpath, buf, sizeof(dbpath)); |
|
if (gtagsconf[0]) { |
|
|
if (realpath(gtagsconf, buf) == NULL) |
|
|
die("cannot get realpath of gtagsconf."); |
|
|
strlimcpy(gtagsconf, buf, sizeof(gtagsconf)); |
|
|
} |
|
1636 |
} |
} |
1637 |
/* |
/* |
1638 |
* for global(1) and gtags(1). |
* for global(1) and gtags(1). |
1640 |
set_env("GTAGSROOT", cwdpath); |
set_env("GTAGSROOT", cwdpath); |
1641 |
set_env("GTAGSDBPATH", dbpath); |
set_env("GTAGSDBPATH", dbpath); |
1642 |
set_env("GTAGSLIBPATH", ""); |
set_env("GTAGSLIBPATH", ""); |
|
if (gtagsconf[0]) |
|
|
set_env("GTAGSCONF", gtagsconf); |
|
|
if (gtagslabel) |
|
|
set_env("GTAGSLABEL", gtagslabel); |
|
1643 |
/* |
/* |
1644 |
* check directories |
* check directories |
1645 |
*/ |
*/ |