ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: [OS X TeX] TeX run : 8
Date: Wed, 02 Mar 2005 15:55:10 +0100	[thread overview]
Message-ID: <4225D3CE.3030307@wxs.nl> (raw)
In-Reply-To: <22458.159.46.248.233.1109770290.squirrel@159.46.248.233>

Gerben Wierda wrote:

> - How do you check that they are the same? (cmp command?)
> - How does texexec check if another run is needed?

texexec calls texutil which converts a tui file into a tuo file (in the process 
it sorts indexes and such); when a job is aborted (or has errors) no tuo file is 
generated (saves an additional later run after a fix); copied from texexec:

use File::Compare;

sub RunTeXutil {
     my $StopRunning;
     my $JobName = shift;
     unlink "$JobName.tup";
     rename "$JobName.tuo", "$JobName.tup";
     print "  sorting and checking : running texutil\n";
     my $TcXSwitch = '';
     if ( $TcXPath ne '' ) { $TcXSwitch = "--tcxpath=$TcXPath" }
     RunPerlScript( $TeXUtil, "--ref --ij --high $TcXPath $JobName" );

     if ( -e "$JobName.tuo" ) {
         CheckPositions($JobName);
         $StopRunning = !compare( "$JobName.tup", "$JobName.tuo" );
     } else {
         $StopRunning = 1;
     }    # otherwise potential loop
     if ( !$StopRunning ) {
         print "\n utility file analysis : another run needed\n";
     }
     return $StopRunning;
}

maybe some file permissions problem?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2005-03-02 14:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-02 13:24 Steffen Wolfrum
2005-03-02 13:31 ` Gerben Wierda
2005-03-02 14:55   ` Hans Hagen [this message]
2005-03-02 15:18     ` Taco Hoekwater
2005-03-02 15:33     ` Gerben Wierda
2005-03-02 16:43       ` Hans Hagen
2005-03-02 14:50 ` Hans Hagen
2005-03-03  7:28 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2005-03-02 19:08 Steffen Wolfrum
2005-03-02 16:03 Steffen Wolfrum
2005-03-02 16:47 ` Hans Hagen
2005-03-02 15:57 Steffen Wolfrum
2005-03-02 16:45 ` Hans Hagen
2005-03-02 11:59 Steffen Wolfrum
2005-03-02 12:31 ` Hans Hagen
2005-03-02 12:35 ` Hans Hagen
2005-03-02 11:04 Steffen Wolfrum
2005-03-02 11:32 ` Hans Hagen
2005-03-01 17:24 Steffen Wolfrum
2005-03-02 11:28 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4225D3CE.3030307@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).