aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2019-05-12 18:25:31 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2019-05-12 18:25:31 +0000
commit5712cd7e23ac2ef12bf05c22dbf8057038c48cf9 (patch)
treef8e4d2adbc675f90c06cab818c62582c76dda641
parentd4a8d01beadddff2689c4aeb946fc7f05410d86c (diff)
downloaddoc-5712cd7e23ac2ef12bf05c22dbf8057038c48cf9.tar.gz
doc-5712cd7e23ac2ef12bf05c22dbf8057038c48cf9.zip
implement a blacklist for manpages which does not work well in HTML output
Notes
Notes: svn path=/head/; revision=53008
-rwxr-xr-xen_US.ISO8859-1/htdocs/cgi/man.cgi8
1 files changed, 7 insertions, 1 deletions
diff --git a/en_US.ISO8859-1/htdocs/cgi/man.cgi b/en_US.ISO8859-1/htdocs/cgi/man.cgi
index 5e47bd60fd..700b552fc0 100755
--- a/en_US.ISO8859-1/htdocs/cgi/man.cgi
+++ b/en_US.ISO8859-1/htdocs/cgi/man.cgi
@@ -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' ) );