",&text('man_noentry', "".&html_escape($in{'page'}).""),"
\n"; } else { if (&has_command($config{'man2html_path'})) { # Last line only @lines = split(/\r?\n/, $out); $out = $lines[$#lines]; if ($out =~ /\(<--\s+(.*)\)/) { # Output has cached file and original path $out = $1; } $out =~ s/ .*//; if( $out =~ /^.*\.gz/i ) { $cmd = "gunzip -c"; } elsif ($out =~ /^.*\.(bz2|bz)/i) { $cmd = "bunzip2 -c"; } else { $cmd = "cat"; } $qout = quotemeta($out); $manout = &backquote_command("$config{'man2html_path'} -v 2>&1", 1); if ($manout =~ /Version:\s+([0-9\.]+)/i && $1 >= 3) { # New version uses a different syntax! $cmd .= " $qout | nroff -mman | $config{'man2html_path'} --cgiurl \"view_man.cgi?page=\\\${title}&sec=\\\${section}&opts=$in{'opts'}\" --bare"; $out = &backquote_command("$cmd 2>&1", 1); } else { # Old version of man2html $cmd .= " $qout | $config{'man2html_path'} -H \"\" -M \"view_man.cgi\""; $out = &backquote_command("$cmd 2>&1", 1); $out =~ s/^.*Content-type:.*\n//i; $out =~ s/http:\/\///ig; $out =~ s/\?/\?sec=/ig; $out =~ s/\+/&opts=$in{'opts'}&page=/ig; $out =~ s/.*
".&html_escape($out)."