Add system-wide configuration file and new config file environment vars
authorDominik Vogt <dvogt@ffm.tc.iot.dtag.de>
Thu, 27 Dec 2007 10:11:28 +0000 (11:11 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 16 Mar 2008 21:18:07 +0000 (22:18 +0100)
commitb6607e7e796f5b58d64211c022d3e1af6159bdaa
treea8da37c2478ff7e3fbc1d368bb7b740e54863300
parent62c7d1a796bcb6bc5577b643efdc0f753c195e8b
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>
Makefile
config.make.in
manual.txt
tig.1.txt
tig.c