svn commit: r53008 - head/en_US.ISO8859-1/htdocs/cgi

Wolfram Schneider wosch at FreeBSD.org
Sun May 12 18:25:33 UTC 2019


Author: wosch
Date: Sun May 12 18:25:31 2019
New Revision: 53008
URL: https://svnweb.freebsd.org/changeset/doc/53008

Log:
  implement a blacklist for manpages which does not work well in HTML  output

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun May 12 15:01:43 2019	(r53007)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun May 12 18:25:31 2019	(r53008)
@@ -732,6 +732,10 @@ $manPathDefault = 'FreeBSD 12.0-RELEASE and Ports';
     'MACH 2.5/i386', "$manLocalDir/MACH-2.5-i386",
 );
 
+my @no_html_output = (
+    'IRIX-6.5.30'
+);
+
 my @no_pdf_output = (
     '386BSD 0.0',
     '386BSD 0.1',
@@ -775,6 +779,7 @@ my @no_pdf_output = (
 );
 
 my %no_pdf_output = map { $_ => 1 } @no_pdf_output;
+my %no_html_output = map { $_ => 1 } @no_html_output;
 
 my %valid_arch = map { $_ => 1 }
   qw/aarch64 acorn26 acorn32 algor alpha amd64 amiga arc arm arm26 arm32 arm64 armish atari aviion bebox cats cesfic cobalt dreamcast evbarm evbmips evbppc evbsh3 evbsh5 hp300 hp700 hpcarm hpcmips hpcsh hppa hppa64 i386 ibmnws landisk loongson luna68k luna88k mac68k macppc mipsco mmeye mvme68k mvme88k mvmeppc netwinder news68k newsmips next68k ofppc palm pc532 pegasos playstation2 pmax pmppc powerpc prep sandpoint sbmips sgi sgimips shark socppc sparc sparc64 sun2 sun3 sun3x tahoe vax walnut wgrisc x68k zaurus/;
@@ -1823,7 +1828,8 @@ ETX
 <select name="format">
 ETX
 
-    my @format = ('html');
+    my @format = ();
+    push( @format, ( 'html' ) ) if !$no_html_output{$manpath};
     push( @format, ( 'pdf' ) ) if !$no_pdf_output{$manpath};
     push( @format, ( 'ascii' ) );
 


More information about the svn-doc-all mailing list