Update of /cvsroot/compbench/compbenchmarks-web/tools
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15866
Modified Files:
import-doc.pl
Log Message:
Fix on doxygen documentation import to make it browseable on-line.
Index: import-doc.pl
===================================================================
RCS file: /cvsroot/compbench/compbenchmarks-web/tools/import-doc.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** import-doc.pl 8 Feb 2007 18:33:18 -0000 1.1
--- import-doc.pl 25 Sep 2007 15:44:09 -0000 1.2
***************
*** 3,16 ****
use strict;
# http://biomass/cgi-bin/doc.cgi?tab=core&version=0.5.0&target=classCBM_1_1Benchmark.html
! my $SRC_DOC_PATH = "/home/fred/workspace/CompBenchmarks++/doc/html";
! my $VERSION = "0.5.0";
! my $DEST_DOC_PATH = "/home/fred/workspace/compbenchmarks-web/tmp/doc/$VERSION";
! my $HTMLFILE_PREFIX = "/cgi-bin/doc.cgi?tab=core&version=$VERSION&target=";
sub treat_htmlfile {
my $file = shift;
my $htmlfile_prefix = $HTMLFILE_PREFIX;
! my $png_prefix = "\/tmp\/doc\/$VERSION";
# $htmlfile_prefix =~ s/\//\\\//g;
--- 3,19 ----
use strict;
# http://biomass/cgi-bin/doc.cgi?tab=core&version=0.5.0&target=classCBM_1_1Benchmark.html
! push(@INC, "../lib");
! require "config.pl";
! our $LT_CBM_VERSION;
!
! my $SRC_DOC_PATH;
! my $DEST_DOC_PATH;
! my $HTMLFILE_PREFIX;
sub treat_htmlfile {
my $file = shift;
my $htmlfile_prefix = $HTMLFILE_PREFIX;
! my $png_prefix = "\/tmp\/doc\/$LT_CBM_VERSION";
# $htmlfile_prefix =~ s/\//\\\//g;
***************
*** 36,40 ****
push(@out, "$s\n");
}
! open(FD, ">$file") || die ("$!");
print FD @out;
close(FD);
--- 39,43 ----
push(@out, "$s\n");
}
! open(FD, ">$file") || die ("$! ($file)");
print FD @out;
close(FD);
***************
*** 75,78 ****
--- 78,89 ----
}
+
$|=1;
+ config_read("../etc/compbenchmarks-web.conf");
+
+ $SRC_DOC_PATH = "/home/fred/workspace/CompBenchmarks++/doc/html";
+ $DEST_DOC_PATH = "/home/fred/workspace/compbenchmarks-web/tmp/doc/$LT_CBM_VERSION";
+
+ $HTMLFILE_PREFIX = "/cgi-bin/doc.cgi?tab=core&version=$LT_CBM_VERSION&target=";
+
treat();
|