~ubuntu-branches/debian/jessie/gman/jessie

« back to all changes in this revision

Viewing changes to debian/patches/manpath.patch

  • Committer: Package Import Robot
  • Author(s): Osamu Aoki
  • Date: 2012-01-04 00:48:23 UTC
  • Revision ID: package-import@ubuntu.com-20120104004823-wbo6r3f2eslbt1ln
Tags: 0.9.3-5.2
* Non-maintainer upload.
* Switched from mozilla to sensible-browser.
* Added evince as choice since this is gnome/GTK+ app.
* Updated manpath default values to current situation.
* Updated policy version, used 3.0 (quilt) format, and
  made some lintian touch-ups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: Osamu Aoki <osamu@debian.org>
 
2
Description: Adjust manpath to current values
 
3
--- a/gman.1x
 
4
+++ b/gman.1x
 
5
@@ -74,7 +74,7 @@
 
6
 .br
 
7
 show_warning = 0
 
8
 .br
 
9
-man_paths = /usr/man:/usr/local/man:/usr/X11R6/man
 
10
+man_paths = /usr/local/man:/usr/local/share/man:/usr/share/man
 
11
 .sp
 
12
 For more information, see init_context() function in gman.c for all the 
 
13
 options avialiable.
 
14
--- a/gman.c
 
15
+++ b/gman.c
 
16
@@ -82,7 +82,7 @@
 
17
        context = new AppContext();
 
18
        //      context->set_default_value("v_size",(void*)400);
 
19
        context->set_default_value("debuging","int",(void*)0);
 
20
-       context->set_default_value("man_paths","char*",(void*)"/usr/share/man:/usr/X11R6/man:/usr/man:/usr/local/man");
 
21
+       context->set_default_value("man_paths","char*",(void*)"/usr/local/man:/usr/local/share/man:/usr/share/man");
 
22
        context->set_default_value("display_section_policy","int",(void*)0);
 
23
        context->set_default_value("display_section","int",(void*)3);
 
24
        context->set_default_value("searching_mode","int",(void*)0);
 
25
--- a/t2.c
 
26
+++ b/t2.c
 
27
@@ -744,7 +744,7 @@
 
28
        item_list_length = 0;
 
29
        item_list_count = 0;
 
30
 
 
31
-       man_paths = new ManPath("/usr/X11/man/");
 
32
+       man_paths = new ManPath("/usr/share/man/");
 
33
        printf("GetSize = %d\n",man_paths->GetSize('a'));
 
34
 
 
35
        item_list_length = item_list_count = man_paths->GetSize('a');