[tex-live] epstopdf does not propagate exit code

T T t34www at googlemail.com
Mon Sep 14 02:35:46 CEST 2009


2009/9/13 Reinhard Kotucha <reinhard.kotucha at web.de>:
> Here is the patch I sent him:
>
> --- epstopdf.pl 2009-07-20 02:59:05.000000000 +0200
> +++ epstopdf.pl-new     2009-08-25 22:58:06.000000000 +0200
> @@ -427,5 +427,6 @@
>  close(IN);
>  print OUT "\ngrestore\n" if $BBCorrected;
>  close(OUT);
> +exit ($?/256) if $?;
>  warning "BoundingBox not found" unless $BBCorrected;
>  debug "Ready.";
>
>
> The Perl variable $? contains a 16 bit number, the most significant
> byte contains the exit code.  Thus the division by 256.

Thanks Reinhard, that fixed the problem but I found another one, this
time my own screw up. Exit codes does not propagate properly from .bat
scripts to .exe stubs. I already know how to fix it but I will need to
replace all 100+ stubs :(

Cheers,

Tomek


More information about the tex-live mailing list