Re: [dev-context] Cron <context@server> /var/www/aanhet.net/context/bin/cron/context-mirror
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Hi, Hans made a new release yesterday evening. I do not know what is in it (yet), but consider yourself warned :-) Taco Cron Daemon wrote:
receiving file list ... done ./ context/beta/ context/current/ context/current/cont-exa.zip context/current/cont-ext.zip context/current/cont-fnt.zip context/latest/ context/current/cont-img.zip context/current/cont-mpd.zip context/current/cont-ppc.zip context/current/cont-tmf.zip context/current/cont-win.zip
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Taco Hoekwater wrote:
Hi,
Hans made a new release yesterday evening. I do not know what is in it (yet), but consider yourself warned :-)
i just uploaded a current with some patched to texexec (for norbert) texmfstart --verbose texexec --make --all --fast en should generate format and report success texmfstart --verbose texexec --make --all --fast xx reports a failure and exits with code 1 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/1aaa8171e46f2c29d4441fa99a7fc634.jpg?s=120&d=mm&r=g)
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 ;-)
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/1aaa8171e46f2c29d4441fa99a7fc634.jpg?s=120&d=mm&r=g)
On Mit, 10 Jan 2007, Hans Hagen wrote:
def exit if @error then Kernel.exit(1) else Kernel.exit(0) end end
Maybe ruby switches the 1 <-> 0??? No idea to be honest.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Norbert Preining wrote:
On Mit, 10 Jan 2007, Hans Hagen wrote:
def exit if @error then Kernel.exit(1) else Kernel.exit(0) end end
Maybe ruby switches the 1 <-> 0??? No idea to be honest.
Me neither, but if the first option is the wrong one, then I assume the opposite has to be correct. Taco
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Norbert Preining wrote:
On Mit, 10 Jan 2007, Hans Hagen wrote:
def exit if @error then Kernel.exit(1) else Kernel.exit(0) end end
Maybe ruby switches the 1 <-> 0??? No idea to be honest.
if execute(ARGV) then report("\nexecution was successful") if $verbose exit(0) else report("\nexecution failed") if $verbose exit(1) end can you check this at the end of texmfstart,rb? 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/1aaa8171e46f2c29d4441fa99a7fc634.jpg?s=120&d=mm&r=g)
On Mit, 10 Jan 2007, Hans Hagen wrote:
if execute(ARGV) then report("\nexecution was successful") if $verbose exit(0) else report("\nexecution failed") if $verbose exit(1) end
can you check this at the end of texmfstart,rb?
Yes it did the trick: On Mit, 10 Jan 2007, Hans Hagen wrote:
i just uploaded a current with some patched to texexec (for norbert)
texmfstart --verbose texexec --make --all --fast en
returns 0
should generate format and report success
texmfstart --verbose texexec --make --all --fast xx
reports a failure and exits with code 1
returns 1
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Norbert Preining wrote:
On Mit, 10 Jan 2007, Hans Hagen wrote:
if execute(ARGV) then report("\nexecution was successful") if $verbose exit(0) else report("\nexecution failed") if $verbose exit(1) end
can you check this at the end of texmfstart,rb?
Yes it did the trick:
On Mit, 10 Jan 2007, Hans Hagen wrote:
i just uploaded a current with some patched to texexec (for norbert)
texmfstart --verbose texexec --make --all --fast en
returns 0
should generate format and report success
texmfstart --verbose texexec --make --all --fast xx
reports a failure and exits with code 1
returns 1
ok, i'll upload the fix later today 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 10 Jan 2007, Hans Hagen wrote:
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
Maybe set Kernel.exit! rather than exit. exit! bypasses exception handling and at_exit stuff. See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6482 Aditya
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Norbert Preining
-
Taco Hoekwater