X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fdoc.mc;h=beae59cbb31c1174e8bc41259945de3ceb909300;hp=8d71d8ab9f10b39c74b287396d74a74ba737aa5c;hb=ae0af9c8a90270423a68fc3a1c225d74b80ed09e;hpb=c32248b34e3b893f285b6e3de9f13d14c436080a diff --git a/web/htdocs/details/doc.mc b/web/htdocs/details/doc.mc index 8d71d8a..beae59c 100644 --- a/web/htdocs/details/doc.mc +++ b/web/htdocs/details/doc.mc @@ -1,20 +1,21 @@ -%# $Id: doc.mc,v 1.1 2006-09-28 16:48:20 mike Exp $ +%# $Id: doc.mc,v 1.2 2006-11-01 10:11:01 mike Exp $ <%once> use Pod::Html; use IO::Dir; <%perl> +my $libdir = $r->dir_config("IRSpyLibDir"); my $module = $r->param("module"); if (!defined $module) { print " \n"; } else { print "Documentation for '$module'\n"; { my $dir = "/tmp/pod2html"; mkdir $dir; chdir $dir || die $!; } # For some reason, output to standard output doesn't appear my $name = "ZOOM.html"; - pod2html("$LIBDIR/$module", "--outfile=$name"); + pod2html("$libdir/$module", "--outfile=$name"); open F, "<$name" or die "can't open '$name': $!"; my $text = join("", ); close F;