texexec returns 1 when generating format file
Dear ConTeXt hackers, when issuing the command 'texexec --make --alone en' the cont-en format gets generated. Everything is nice except that texexec returns status code "1", which on unix systems means failure. Is there any way to get a "0"? Patrick
On Fri, Jan 03, 2003 at 07:48:02PM +0100, Patrick Gundlach wrote:
Dear ConTeXt hackers,
when issuing the command 'texexec --make --alone en' the cont-en format gets generated. Everything is nice except that texexec returns status code "1", which on unix systems means failure. Is there any way to get a "0"?
For me it returns 0, as expected. However, browsing through texexec I see this: sub RunOneFormat { my ($FormatName) = @_ ; my @TeXFormatPath ; my $TeXPrefix = "" ; if (($fmtutil ne "")&&($FormatName !~ /metafun|mptopdf/io)) { ... } # use fmtutil else { $Problems = 1 } if ($Problems) { ... } # call initex directly # in the main routine ... if ($Problems) { exit 1 } Making a format runs RunOneFormat, and it may be that setting $Problems and hence returning a positive value is a side effect of not using fmtutil. In RunOneFormat, change the line system ( $cmd ) ; in the if ($Problems) branch to $Problems = system ( "$cmd" ) ; and see if it changes things. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
Simon Pepping
when issuing the command 'texexec --make --alone en' the cont-en format gets generated. Everything is nice except that texexec returns status code "1", which on unix systems means failure. Is there any way to get a "0"?
For me it returns 0, as expected.
even with the --alone?
Making a format runs RunOneFormat, and it may be that setting $Problems and hence returning a positive value is a side effect of not using fmtutil.
That was exactly the problem. I am not using fmtutil (since I use the switch --alone) and therefore $Problems is set to 1.
$Problems = system ( "$cmd" ) ; and see if it changes things.
It did and thank you. Could this (or anything like this) go into distribution? Patrick
participants (2)
-
Patrick Gundlach
-
Simon Pepping