[LON-CAPA-cvs] cvs: loncom /interface printout.pl

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 13 Nov 2006 11:18:46 -0000


foxr		Mon Nov 13 06:18:46 2006 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  Correct destination directory for eps copies.
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.112 loncom/interface/printout.pl:1.113
--- loncom/interface/printout.pl:1.112	Mon Nov  6 06:40:02 2006
+++ loncom/interface/printout.pl	Mon Nov 13 06:18:46 2006
@@ -227,14 +227,15 @@
 	      # We really just need to copy it from where it was to prtspool
 	      # but with the spaces substituted to _'s.
 	      #
-	      my ($nsname,$path, $sext) = fileparse($not_eps, qr/\.(ps|eps)/i);
+	      my ($nsname,$path, $sext) = fileparse($eps_f, qr/\.(ps|eps)/i);
 	      if ($sext =~/ps$/i) {
 		  # print "$not_eps is a postscript file. copy to $path\n";
 		  File::Path::mkpath($path,0,0777);
+		    print "Made path: $path";
 #		  $not_eps =~ s/^\s+//;
 #		  $not_eps =~ s/\s+$//;
 #		  $not_eps =~ s/ /\__/g;
-		  # print "Copying $not_eps to $eps_f\n";
+		  print "Copying $not_eps to $eps_f\n";
 		  copy("$not_eps", "$eps_f"); 
 		  # print "Copy complete\n";
 	      } else {