[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 2987 Revision 2988
984 } 984 }
985 985
986 my $gifFileName = fileFromPath($gifFilePath); 986 my $gifFileName = fileFromPath($gifFilePath);
987 987
988 $gifFileName =~ /^(.*)\.gif$/; 988 $gifFileName =~ /^(.*)\.gif$/;
989 my $pngFilePath = surePathToTmpFile("${tempDirectory}png/$1.png"); 989 my $pngFilePath = surePathToTmpFile("${tempDirectory}png/$probNum-$1.png");
990 my $returnCode = system "$envir{externalGif2PngPath} $gifFilePath $pngFilePath"; 990 my $returnCode = system "$envir{externalGif2PngPath} $gifFilePath $pngFilePath";
991 991
992 if ($returnCode or not -e $pngFilePath) { 992 if ($returnCode or not -e $pngFilePath) {
993 die "failed to convert $gifFilePath to $pngFilePath using gif->png with $envir{externalGif2PngPath}: $!\n"; 993 die "failed to convert $gifFilePath to $pngFilePath using gif->png with $envir{externalGif2PngPath}: $!\n";
994 } 994 }

Legend:
Removed from v.2987  
changed lines
  Added in v.2988

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9