diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-03-19 17:31:43 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-03-19 17:31:43 +0000 |
commit | 5f046e5bf703dd347d53d9d4dae10c35de5e55b3 (patch) | |
tree | eb9fd6379fdca886b4521762e3354d2556037381 /x11/libgnome/files/patch-help-converters::info::main.c | |
parent | Update libgnomeprint to 1.111.0 after a repo-copy from gnomeprint and connect (diff) |
Update to 1.112.1 after a repo-copy from gnomelibs.
Notes
Notes:
svn path=/head/; revision=56345
Diffstat (limited to 'x11/libgnome/files/patch-help-converters::info::main.c')
-rw-r--r-- | x11/libgnome/files/patch-help-converters::info::main.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/libgnome/files/patch-help-converters::info::main.c b/x11/libgnome/files/patch-help-converters::info::main.c new file mode 100644 index 000000000000..221f00345893 --- /dev/null +++ b/x11/libgnome/files/patch-help-converters::info::main.c @@ -0,0 +1,25 @@ + +$FreeBSD$ + +--- help-converters/info/main.c 2002/02/20 18:02:08 1.1 ++++ help-converters/info/main.c 2002/02/20 18:08:43 +@@ -87,13 +87,15 @@ + char buf[PATH_MAX]; + + /* First, find the directory that the info file is in. */ +- dirs[0] = "/usr/info"; +- dirs[1] = "/usr/share/info"; ++ dirs[0] = "/usr/share/info"; ++ dirs[1] = PREFIX "/info"; ++ dirs[2] = LOCALBASE "/info"; ++ dirs[3] = X11BASE "/info"; + /* We now have at least one directory to look in. This is + * necessary because we may not have an 'INFOPATH' set */ +- ndirs = 2; ++ ndirs = 4; + if(infopath) +- for(ndirs = 2, ctmp = strtok(infopath, ":"); ndirs < 64 && ctmp; ndirs++, ctmp = strtok(NULL, ":")) ++ for(ndirs = 4, ctmp = strtok(infopath, ":"); ndirs < 64 && ctmp; ndirs++, ctmp = strtok(NULL, ":")) + dirs[ndirs] = strdup(ctmp); + + for(i = 0; i < ndirs; i++) |