#!/usr/bin/perl -w
use
HTML::Latex;
use
strict;
my
@files
=
qw(t/tags)
;
my
$parser
= HTML::Latex->new(
"html2latex.xml"
);
'1..'
,
scalar
2 *
@files
,
"\n"
;
foreach
my
$file
(
@files
){
$parser
->set_log(
"$file.log"
);
my
(
$htmlfile
,
$latexfile
) =
$parser
->html2latex(
"$file.html"
)
or
die
"Couldn't process $file.html"
;
"not "
if
(!(-f
$latexfile
) || `diff
$latexfile
$file
.correct`);
"ok\n"
;
"not "
if
(!(-f
"$file.log"
) || `diff
$file
.
log
$file
.
log
.correct`);
"ok\n"
;
}
unlink
<*.old>;