Skip Menu |

This queue is for tickets about the HTML-HTMLDoc CPAN distribution.

Report information
The Basics
Id: 35901
Status: new
Priority: 0/
Queue: HTML-HTMLDoc

People
Owner: MFRANKL [...] cpan.org
Requestors: adam.jaschinski [...] web.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Ein kleiner Patch
Hallo, ich habe eine Patch angehaengt, der einen Parameter hinzufuegt, mit dem man den Pfad zu dem htmldoc-binary manuell angeben kann. Dieser Parameter heisst 'bindir'. Ist es moeglich diesen Patch einzbauen? Gruss Adam
Subject: HTMLDoc.pm.patch
diff -uNr HTML-HTMLDoc-0.10/lib/HTML/HTMLDoc.pm HTML-HTMLDoc-0.10.p/lib/HTML/HTMLDoc.pm --- HTML-HTMLDoc-0.10/lib/HTML/HTMLDoc.pm 2005-10-26 10:40:57.000000000 +0200 +++ HTML-HTMLDoc-0.10.p/lib/HTML/HTMLDoc.pm 2008-04-22 09:27:07.000000000 +0200 @@ -49,6 +49,10 @@ $self->{'config'}->{'tmpdir'} = '/tmp'; } + if ( defined($self->{'config'}->{'bindir'}) ) { + $self->{'config'}->{'bindir'} .= "/" if ( $self->{'config'}->{'bindir'} !~ /\/$/ ); + }; + $self->{'errors'} = []; $self->{'doc_config'} = {}; @@ -989,12 +993,12 @@ if ($self->_config('mode') eq 'ipc') { # we are in normale Mode, use IPC my ($pid, $error); - ($pid,$pdf,$error) = $self->_run("htmldoc $params --webpage -", $self->get_html_content()); +> ($pid,$pdf,$error) = $self->_run("$self->{'config'}->{'bindir'}htmldoc $params --webpage -", $self->get_html_content()); } else { # we are in file-mode my $filename = $self->_prepare_input_file(); return undef if (!$filename); - $pdf = `htmldoc $params --webpage $filename`; +> $pdf = `$self->{'config'}->{'bindir'}htmldoc $params --webpage $filename`; $self->_cleanup(); }