summaryrefslogtreecommitdiffstats
path: root/textproc/man2html/files/patch-man.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/man2html/files/patch-man.cgi')
-rw-r--r--textproc/man2html/files/patch-man.cgi67
1 files changed, 67 insertions, 0 deletions
diff --git a/textproc/man2html/files/patch-man.cgi b/textproc/man2html/files/patch-man.cgi
new file mode 100644
index 0000000..323a242
--- /dev/null
+++ b/textproc/man2html/files/patch-man.cgi
@@ -0,0 +1,67 @@
+--- man.cgi.orig Wed Aug 13 01:19:18 1997
++++ man.cgi Sat Sep 30 00:46:55 2000
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl5.00503
+ ##---------------------------------------------------------------------------##
+ ## File:
+ ## @(#) man.cgi 1.2 97/08/12 12:58:26 @(#)
+@@ -59,8 +59,8 @@
+ ## systems. If using Tom Christiansen's Perl man program, than
+ ## define use "".
+
+-#$SectOpt = "";
+-$SectOpt = "-s";
++$SectOpt = "";
++#$SectOpt = "-s";
+
+ ## man2html program (needs to be a full pathname)
+
+@@ -77,15 +77,15 @@
+
+ #@ConvArgs = ("-compress");
+ #@ConvArgs = ("-compress", "-leftm", "1", "-topm", "8");
+-@ConvArgs = ("-compress", "-sun");
++#@ConvArgs = ("-compress", "-sun");
+
+ ## Keyword search processing arguments for man2html. Normally,
+ ## '-k' is adequate. However, if on a Solaris system, the
+ ## '-solaris' option should be specified with '-k'. See
+ ## man2html documentation on information about the '-solaris' option.
+
+-#@KeyWArgs = ("-k"); # Normal
+-@KeyWArgs = ("-k", "-solaris"); # For Solaris
++@KeyWArgs = ("-k"); # Normal
++#@KeyWArgs = ("-k", "-solaris"); # For Solaris
+
+ ## Possible manual sections. This array is used to determine the
+ ## the choices available in an option menu.
+@@ -124,9 +124,9 @@
+ ## know about
+
+ @ManPath = qw(
++ /usr/share/man
+ /usr/local/man
+- /usr/openwin/man
+- /usr/man
++ /usr/X11R6/man
+ );
+
+ ## PATH setting. Modify as see fit. Once useful modification
+@@ -134,7 +134,6 @@
+ ## be invoked over the systems nroff when man formats a manpage.
+
+ @Path = qw(
+- /opt/FSFgroff/bin
+ /bin
+ /usr/bin
+ );
+@@ -270,7 +269,7 @@
+
+ # Convert output from man to html
+ #--------------------------------
+- close(STDERR);
++ open(STDERR, ">&/dev/null");
+ open(MANPRG, "-|") or exec($ManPrg, @manargs);
+ $Man2Html::InFH = \*MANPRG; # set input filehandle
+ require $ManConvPrg or
OpenPOWER on IntegriCloud