[system] / trunk / pg / macros / dangerousMacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/dangerousMacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1080 Revision 1091
542% END FOOTER 542% END FOOTER
543EOF 543EOF
544 close TEX; 544 close TEX;
545 545
546 # call latex 546 # call latex
547 system "cd $wd && $latex $texFile" 547 system "cd $wd && $latex $texFile > /dev/null"
548 and warn "Failed to call $latex with $texFile: $!"; 548 and warn "Failed to call $latex with $texFile: $!";
549 549
550 unless (-e $dviFile) { 550 unless (-e $dviFile) {
551 warn "Failed to generate DVI file $dviFile"; 551 warn "Failed to generate DVI file $dviFile";
552 return 0; 552 return 0;
562 # call dvipng -- using warn instead of die passes some extra information 562 # call dvipng -- using warn instead of die passes some extra information
563 # back to the user the complete warning is still printed in the apache 563 # back to the user the complete warning is still printed in the apache
564 # error log and a simple message (math2img failed) is returned to the 564 # error log and a simple message (math2img failed) is returned to the
565 # webpage. 565 # webpage.
566 my $cmdout; 566 my $cmdout;
567 $cmdout = system "cd $wd && $dvipng $dviCall" 567 $cmdout = system "cd $wd && $dvipng $dviCall > /dev/null"
568 and warn "Failed to call$dvipng with $dviCall: $! with signal $cmdout"; 568 and warn "Failed to call$dvipng with $dviCall: $! with signal $cmdout";
569 569
570 unless (-e $pngFile) { 570 unless (-e $pngFile) {
571 warn "Failed to create PNG file $pngFile"; 571 warn "Failed to create PNG file $pngFile";
572 return 0; 572 return 0;

Legend:
Removed from v.1080  
changed lines
  Added in v.1091

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9