author | Dominik Vogt <dvogt@ffm.tc.iot.dtag.de> | |
Thu, 27 Dec 2007 10:11:28 +0000 (11:11 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 16 Mar 2008 21:18:07 +0000 (22:18 +0100) | ||
commit | b6607e7e796f5b58d64211c022d3e1af6159bdaa | |
tree | a8da37c2478ff7e3fbc1d368bb7b740e54863300 | tree | snapshot |
parent | 62c7d1a796bcb6bc5577b643efdc0f753c195e8b | commit | diff |
Add system-wide configuration file and new config file environment vars
Introduced envvars TIGRC_USER and TIGRC_SYSTEM to control which config
file is used. The default user specific config file can be overridden
with TIGRC_USER. Before loading the user config file, tig now looks for
a system wide config file ($(sysconfdir)/tirgc by default). This can be
overridden with the environment variable TIGRC_SYSTEM.
Also corrected a small mistake in the Makefile. Instead of setting
CFLAGS for '-D...' compiler options, use CPPFLAGS.
[ The original code from Dominik was changed so that tig always reads
the system-wide configuration file. The documentation was improved
so the configured sysconfdir is used in the generated documentation.
-- jonas ]
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Introduced envvars TIGRC_USER and TIGRC_SYSTEM to control which config
file is used. The default user specific config file can be overridden
with TIGRC_USER. Before loading the user config file, tig now looks for
a system wide config file ($(sysconfdir)/tirgc by default). This can be
overridden with the environment variable TIGRC_SYSTEM.
Also corrected a small mistake in the Makefile. Instead of setting
CFLAGS for '-D...' compiler options, use CPPFLAGS.
[ The original code from Dominik was changed so that tig always reads
the system-wide configuration file. The documentation was improved
so the configured sysconfdir is used in the generated documentation.
-- jonas ]
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Makefile | diff | blob | history | |
config.make.in | diff | blob | history | |
manual.txt | diff | blob | history | |
tig.1.txt | diff | blob | history | |
tig.c | diff | blob | history |