Diff for /loncom/interface/printout.pl between versions 1.11 and 1.13

version 1.11, 2002/08/01 15:28:35 version 1.13, 2002/08/01 18:09:27
Line 9  my $figfile = $texfile; Line 9  my $figfile = $texfile;
 $figfile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.dat/;  $figfile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.dat/;
 my $duefile = $texfile;  my $duefile = $texfile;
 $duefile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.due/;  $duefile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.due/;
 my $tblfile = $texfile;  
 $tblfile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.tbl/;  
 if (-e $figfile) {  if (-e $figfile) {
     my $temporary_file=IO::File->new($figfile) || die "Couldn't open file for reading: $!\n";      my $temporary_file=IO::File->new($figfile) || die "Couldn't open file for reading: $!\n";
     my @content_of_file = <$temporary_file>;      my @content_of_file = <$temporary_file>;
Line 20  if (-e $figfile) { Line 18  if (-e $figfile) {
  if ($not_eps ne '') {   if ($not_eps ne '') {
     my $eps_f = $not_eps;      my $eps_f = $not_eps;
     $eps_f =~ s/\.[^.]*$/\.eps/i;      $eps_f =~ s/\.[^.]*$/\.eps/i;
     print"START $eps_f FINISH\n";  
     $_ = $eps_f;      $_ = $eps_f;
             m/\/([^\/]+)$/;              m/\/([^\/]+)$/;
     print"START $1 FINISH\n";  
     $eps_f = '/home/httpd/prtspool/'.$1;      $eps_f = '/home/httpd/prtspool/'.$1;
     my $image = Image::Magick->new;      my $image = Image::Magick->new;
     $not_eps =~ s/^\s+//;      $not_eps =~ s/^\s+//;
Line 71  $texps =~ s/\.tex/\.ps/; Line 67  $texps =~ s/\.tex/\.ps/;
 my @garb = ($texlog,$texaux,$texdvi,$texps);  my @garb = ($texlog,$texaux,$texdvi,$texps);
 unlink @garb;  unlink @garb;
 unlink $duefile;  unlink $duefile;
 unlink $tblfile;  
 print "<a href=\"/prtspool/$name_file\">Your PDF document</a>\n";  print "<a href=\"/prtspool/$name_file\">Your PDF document</a>\n";
 print "\n";  print "\n";
   

Removed from v.1.11  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>