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

foxr foxr@source.lon-capa.org
Thu, 29 Apr 2010 10:51:37 -0000


foxr		Thu Apr 29 10:51:37 2010 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  Correct handling of fixps so that embedded pdf jobs print correctly.
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.145 loncom/interface/printout.pl:1.146
--- loncom/interface/printout.pl:1.145	Mon Nov 16 18:00:07 2009
+++ loncom/interface/printout.pl	Thu Apr 29 10:51:37 2010
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.145 2009/11/16 18:00:07 raeburn Exp $
+# $Id: printout.pl,v 1.146 2010/04/29 10:51:37 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -479,9 +479,11 @@
 	      $papera=~s/t/p/;
               $comma = "fixps --force $new_name_file";
               &debug("FIXPS command: $comma");
-              &busy_wait_command("$comma 1>/dev/null 2>/dev/null",
+              &busy_wait_command("$comma 1>$tempo_file  2>/dev/null",
                                  "for $status_statement now validating PS",
                                  \%prog_state,$tempo_file);
+	      &busy_wait_command("mv $tempo_file $new_name_file",
+				 'File move', \%prog_state, $new_name_file);
 	      if ($laystyle eq 'album' and $numberofcolumns eq '2') {
 		  $comma = "psnup $papera -2 -s1.0 $new_name_file";
 		  &debug("PSNUP command: $comma");