]>
Commit | Line | Data |
---|---|---|
e5c377db AM |
1 | --- pinfo-0.6.9.org/doc/pinfo.1.in 2006-03-09 21:54:33.000000000 +0100 |
2 | +++ pinfo-0.6.9/doc/pinfo.1.in 2006-03-18 19:21:54.319546500 +0100 | |
3 | @@ -133,7 +133,7 @@ | |
27cfd034 | 4 | |
5 | .SH COLOR AND KEY DEFINITIONS | |
6 | .P | |
7 | -There are configuration files called ~/.pinforc and | |
8 | +There are configuration files called $HOME_ETC/.pinforc or ~/.pinforc and | |
9 | [prefix]/etc/pinforc, for local and global configuration (where prefix is the | |
10 | prefix of the directory, where pinfo is installed, i.e. /usr/local, or /). | |
11 | Here's an example of such a file; we'll discuss the contents below: | |
e5c377db AM |
12 | --- pinfo-0.6.9.org/doc/pinfo.texi 2006-03-16 16:40:41.000000000 +0100 |
13 | +++ pinfo-0.6.9/doc/pinfo.texi 2006-03-18 19:21:54.319546500 +0100 | |
14 | @@ -202,8 +202,8 @@ | |
27cfd034 | 15 | file}, and at the key descriptions, @xref{Keys}. Keys available in |
16 | manual viewer differ a bit from the keys available in info viewer. | |
17 | ||
18 | -There are configuration files called @file{~/.pinforc} and | |
19 | -@file{[prefix]/etc/pinforc}, for local and global configuration (where | |
20 | +There are configuration files called @file{$HOME_ETC/.pinforc} or @file{~/.pinforc} | |
21 | +and @file{[prefix]/etc/pinforc}, for local and global configuration (where | |
22 | prefix is the prefix of the directory, where @value{PROGRAM} is | |
23 | installed, i.e. @file{/usr/local}, or @file{/usr}). | |
24 | ||
e5c377db AM |
25 | diff -ur pinfo-0.6.9.org/src/parse_config.c pinfo-0.6.9/src/parse_config.c |
26 | --- pinfo-0.6.9.org/src/parse_config.c 2006-03-09 20:44:51.000000000 +0100 | |
27 | +++ pinfo-0.6.9/src/parse_config.c 2006-03-18 19:22:32.693944750 +0100 | |
28 | @@ -118,7 +118,9 @@ | |
29 | { | |
30 | if (rcfile == NULL) | |
31 | { | |
32 | - if (getenv("HOME")) | |
33 | + if (getenv ("HOME_ETC")) | |
34 | + home = strdup (getenv ("HOME_ETC")); | |
35 | + else if (getenv ("HOME")) | |
36 | home = strdup(getenv("HOME")); | |
37 | else | |
38 | home = 0; |