[dev-context] texexec return codes

Hans Hagen pragma at wxs.nl
Wed Jan 10 15:00:56 CET 2007


Norbert Preining wrote:
> On Mit, 10 Jan 2007, Hans Hagen wrote:
>   
>> i just uploaded a current with some patched to texexec (for norbert) 
>>     
>
> Thanks a lot, but it is getting worse ;-) Now everything is the other
> way round!!!! Ahhhhh
>
>   
>> 	texmfstart --verbose texexec --make --all --fast en 
>>
>> should generate format and report success 
>>     
>
> It reports success, but returns 1, which is bad:
> execution was successful
> bagnasciuga:~# echo $?
> 1
> bagnasciuga:~#
>
>   
>> 	texmfstart --verbose texexec --make --all --fast xx 
>>
>> reports a failure and exits with code 1 
>>     
>
> it reports 0!!
>
> execution failed
> bagnasciuga:~# echo $?
> 0
> bagnasciuga:~#
>
> So we are close, but not finished ;-)
>   

in scripts/context/ruby/switch.rb i say ...

    def exit
        if @error then Kernel.exit(1) else Kernel.exit(0) end
    end


-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------



More information about the dev-context mailing list