Diff for /loncom/interface/printout.pl between versions 1.169 and 1.172

version 1.169, 2023/04/15 21:50:34 version 1.172, 2024/07/11 15:24:01
Line 544  foreach $texfile (@texfile) { Line 544  foreach $texfile (@texfile) {
       last if ($device ne '');        last if ($device ne '');
   }    }
   if ($device ne '') {    if ($device ne '') {
         my ($major,$minor);
         if (open(PIPE,"gs -v |grep 'GPL Ghostscript' 2>&1 |")) {
             my $info = <PIPE>;
             close(PIPE);
             chomp($info);
             if ($info =~ /Ghostscript\s+(\d+)\.(\d+)/) {
                 ($major,$minor) = ($1,$2);
             }
         }
       $comma = "gs -sDEVICE=$device -dLanguageLevel=1.5 ";        $comma = "gs -sDEVICE=$device -dLanguageLevel=1.5 ";
         if (($major > 9) || (($major == 9) && ($minor >= 50))) {
             $comma .= '--permit-file-read=* ';
         }
       &busy_wait_command("$comma -o $tempo_file $new_name_file 2>/dev/null 1>/dev/null",        &busy_wait_command("$comma -o $tempo_file $new_name_file 2>/dev/null 1>/dev/null",
          "for $status_statement now validating PS",           "for $status_statement now validating PS",
          \%prog_state, $tempo_file);           \%prog_state, $tempo_file);

Removed from v.1.169  
changed lines
  Added in v.1.172


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