]> git.pld-linux.org Git - packages/pinfo.git/blame - pinfo-home_etc.patch
- mention new version
[packages/pinfo.git] / pinfo-home_etc.patch
CommitLineData
27cfd034 1diff -Nru pinfo-0.6.8.orig/doc/pinfo.1 pinfo-0.6.8/doc/pinfo.1
2--- pinfo-0.6.8.orig/doc/pinfo.1 Thu Aug 21 11:20:06 2003
3+++ pinfo-0.6.8/doc/pinfo.1 Thu Oct 16 07:48:48 2003
4@@ -132,7 +132,7 @@
5
6 .SH COLOR AND KEY DEFINITIONS
7 .P
8-There are configuration files called ~/.pinforc and
9+There are configuration files called $HOME_ETC/.pinforc or ~/.pinforc and
10 [prefix]/etc/pinforc, for local and global configuration (where prefix is the
11 prefix of the directory, where pinfo is installed, i.e. /usr/local, or /).
12 Here's an example of such a file; we'll discuss the contents below:
13diff -Nru pinfo-0.6.8.orig/doc/pinfo.1.in pinfo-0.6.8/doc/pinfo.1.in
14--- pinfo-0.6.8.orig/doc/pinfo.1.in Thu Aug 21 11:18:00 2003
15+++ pinfo-0.6.8/doc/pinfo.1.in Thu Oct 16 07:50:39 2003
16@@ -132,7 +132,7 @@
17
18 .SH COLOR AND KEY DEFINITIONS
19 .P
20-There are configuration files called ~/.pinforc and
21+There are configuration files called $HOME_ETC/.pinforc or ~/.pinforc and
22 [prefix]/etc/pinforc, for local and global configuration (where prefix is the
23 prefix of the directory, where pinfo is installed, i.e. /usr/local, or /).
24 Here's an example of such a file; we'll discuss the contents below:
25diff -Nru pinfo-0.6.8.orig/doc/pinfo.info pinfo-0.6.8/doc/pinfo.info
26--- pinfo-0.6.8.orig/doc/pinfo.info Thu Aug 21 11:20:11 2003
27+++ pinfo-0.6.8/doc/pinfo.info Thu Oct 16 07:51:51 2003
28@@ -173,8 +173,8 @@
29 file::, and at the key descriptions, *Note Keys::. Keys available in
30 manual viewer differ a bit from the keys available in info viewer.
31
32- There are configuration files called `~/.pinforc' and
33-`[prefix]/etc/pinforc', for local and global configuration (where
34+ There are configuration files called `$HOME_ETC/.pinforc' or `~/.pinforc'
35+and `[prefix]/etc/pinforc', for local and global configuration (where
36 prefix is the prefix of the directory, where `pinfo' is installed, i.e.
37 `/usr/local', or `/usr').
38
39diff -Nru pinfo-0.6.8.orig/doc/pinfo.texi pinfo-0.6.8/doc/pinfo.texi
40--- pinfo-0.6.8.orig/doc/pinfo.texi Thu Oct 16 07:41:25 2003
41+++ pinfo-0.6.8/doc/pinfo.texi Thu Oct 16 07:52:47 2003
42@@ -201,8 +201,8 @@
43 file}, and at the key descriptions, @xref{Keys}. Keys available in
44 manual viewer differ a bit from the keys available in info viewer.
45
46-There are configuration files called @file{~/.pinforc} and
47-@file{[prefix]/etc/pinforc}, for local and global configuration (where
48+There are configuration files called @file{$HOME_ETC/.pinforc} or @file{~/.pinforc}
49+and @file{[prefix]/etc/pinforc}, for local and global configuration (where
50 prefix is the prefix of the directory, where @value{PROGRAM} is
51 installed, i.e. @file{/usr/local}, or @file{/usr}).
52
53diff -Nru pinfo-0.6.8.orig/src/parse_config.c pinfo-0.6.8/src/parse_config.c
54--- pinfo-0.6.8.orig/src/parse_config.c Thu Aug 21 11:16:01 2003
55+++ pinfo-0.6.8/src/parse_config.c Thu Oct 16 07:44:46 2003
56@@ -94,7 +94,9 @@
57 else
58 {
59 if (rcfile == NULL)
60- if (getenv ("HOME"))
61+ if (getenv ("HOME_ETC"))
62+ home = strdup (getenv ("HOME_ETC"));
63+ else if (getenv ("HOME"))
64 home = strdup (getenv ("HOME"));
65 else
66 home = 0;
This page took 0.173237 seconds and 4 git commands to generate.