]> git.pld-linux.org Git - packages/pinfo.git/commitdiff
- support for $HOME_ETC
authorwitekfl <witekfl@pld-linux.org>
Thu, 16 Oct 2003 05:55:30 +0000 (05:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pinfo-home_etc.patch -> 1.1

pinfo-home_etc.patch [new file with mode: 0644]

diff --git a/pinfo-home_etc.patch b/pinfo-home_etc.patch
new file mode 100644 (file)
index 0000000..18014b7
--- /dev/null
@@ -0,0 +1,66 @@
+diff -Nru pinfo-0.6.8.orig/doc/pinfo.1 pinfo-0.6.8/doc/pinfo.1
+--- pinfo-0.6.8.orig/doc/pinfo.1       Thu Aug 21 11:20:06 2003
++++ pinfo-0.6.8/doc/pinfo.1    Thu Oct 16 07:48:48 2003
+@@ -132,7 +132,7 @@
+ .SH COLOR AND KEY DEFINITIONS
+ .P
+-There are configuration files called ~/.pinforc and
++There are configuration files called $HOME_ETC/.pinforc or ~/.pinforc and
+ [prefix]/etc/pinforc, for local and global configuration (where prefix is the
+ prefix of the directory, where pinfo is installed, i.e. /usr/local, or /).
+ Here's an example of such a file; we'll discuss the contents below:
+diff -Nru pinfo-0.6.8.orig/doc/pinfo.1.in pinfo-0.6.8/doc/pinfo.1.in
+--- pinfo-0.6.8.orig/doc/pinfo.1.in    Thu Aug 21 11:18:00 2003
++++ pinfo-0.6.8/doc/pinfo.1.in Thu Oct 16 07:50:39 2003
+@@ -132,7 +132,7 @@
+ .SH COLOR AND KEY DEFINITIONS
+ .P
+-There are configuration files called ~/.pinforc and
++There are configuration files called $HOME_ETC/.pinforc or ~/.pinforc and
+ [prefix]/etc/pinforc, for local and global configuration (where prefix is the
+ prefix of the directory, where pinfo is installed, i.e. /usr/local, or /).
+ Here's an example of such a file; we'll discuss the contents below:
+diff -Nru pinfo-0.6.8.orig/doc/pinfo.info pinfo-0.6.8/doc/pinfo.info
+--- pinfo-0.6.8.orig/doc/pinfo.info    Thu Aug 21 11:20:11 2003
++++ pinfo-0.6.8/doc/pinfo.info Thu Oct 16 07:51:51 2003
+@@ -173,8 +173,8 @@
+ file::, and at the key descriptions, *Note Keys::. Keys available in
+ manual viewer differ a bit from the keys available in info viewer.
+-   There are configuration files called `~/.pinforc' and
+-`[prefix]/etc/pinforc', for local and global configuration (where
++   There are configuration files called `$HOME_ETC/.pinforc' or `~/.pinforc'
++and `[prefix]/etc/pinforc', for local and global configuration (where
+ prefix is the prefix of the directory, where `pinfo' is installed, i.e.
+ `/usr/local', or `/usr').
+diff -Nru pinfo-0.6.8.orig/doc/pinfo.texi pinfo-0.6.8/doc/pinfo.texi
+--- pinfo-0.6.8.orig/doc/pinfo.texi    Thu Oct 16 07:41:25 2003
++++ pinfo-0.6.8/doc/pinfo.texi Thu Oct 16 07:52:47 2003
+@@ -201,8 +201,8 @@
+ file}, and at the key descriptions, @xref{Keys}. Keys available in
+ manual viewer differ a bit from the keys available in info viewer.
+-There are configuration files called @file{~/.pinforc} and
+-@file{[prefix]/etc/pinforc}, for local and global configuration (where
++There are configuration files called @file{$HOME_ETC/.pinforc} or @file{~/.pinforc}
++and @file{[prefix]/etc/pinforc}, for local and global configuration (where
+ prefix is the prefix of the directory, where @value{PROGRAM} is
+ installed, i.e. @file{/usr/local}, or @file{/usr}).
+diff -Nru pinfo-0.6.8.orig/src/parse_config.c pinfo-0.6.8/src/parse_config.c
+--- pinfo-0.6.8.orig/src/parse_config.c        Thu Aug 21 11:16:01 2003
++++ pinfo-0.6.8/src/parse_config.c     Thu Oct 16 07:44:46 2003
+@@ -94,7 +94,9 @@
+   else
+     {
+       if (rcfile == NULL)
+-      if (getenv ("HOME"))
++  if (getenv ("HOME_ETC"))
++        home = strdup (getenv ("HOME_ETC"));
++      else if (getenv ("HOME"))
+         home = strdup (getenv ("HOME"));
+       else
+         home = 0;
This page took 0.08727 seconds and 4 git commands to generate.