Re: [NTG-context] how to create texmfstart.exe?

2006-05-15 Thread Hans Hagen
Hi Christian
 I would like to include texmfstart.exe in the MiKTeX distribution, but I 
 don't know how to build texmfstart.exe. Is there a simple recipe 
 (Makefile) I can start with?
   
I'm switching from perl to ruby, so texmfstart is a ruby script. Say that the 
next code is put in ruby2exe.cmd, then i can make a binary with:

ruby2exe texmfstart 

which comes down to packaging the needed libraries + ruby core into an 'exe'. 
It uses exerb.  


@echo off

if exist %~n1.rb goto run

goto usage

:run

set exerbrubypath=c:\data\system\ruby.1.8.2

%exerbrubypath%\bin\ruby.exe  -r exerb/mkexr %~n1.rb %2
%exerbrubypath%\bin\exerb.exe -v -C %exerbrubypath%\share\exerb\ruby182c.exc 
%~n1.exr
del /q %~n1.exr %~n1.mak

goto end

:usage

echo usage: ruby2exe filename

:end

the rest of the programs, like texexec, will be started using texmfstart then 
(which assumes ruby to be present on the system; if not, then one needs to make 
texexec into an exe as well; there is a list of stubs in the latest context 
distribution (scripts/context/stubs/...); not all of them are needed, e.g. 
texutil is now integrated into texexec) 

i use common libraries to figure out the paths, and i hope that i did the 
miktex handling right; (i'd like to test miktex using my own trees, but it's 
kind of hard to set the additional trees that i use); anyhow, in the ruby 
variants it's more easy for me to handle miktex; for the moment it assumes 
kpsewhich to be present, but i can as well call another database program) 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to create texmfstart.exe?

2006-05-15 Thread Hans Hagen
Christian Schenk wrote:
 I would like to include texmfstart.exe in the MiKTeX distribution, but I 
 don't know how to build texmfstart.exe. Is there a simple recipe 
 (Makefile) I can start with?

   
btw, i can ship the pseudo binaries in a separate zip if you like that 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to create texmfstart.exe?

2006-05-15 Thread Christian Schenk
Hans Hagen wrote:
 Christian Schenk wrote:
 I would like to include texmfstart.exe in the MiKTeX distribution, but I 
 don't know how to build texmfstart.exe. Is there a simple recipe 
 (Makefile) I can start with?

   
 btw, i can ship the pseudo binaries in a separate zip if you like that 

That would be fantastic. Thanks!


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to create texmfstart.exe?

2006-05-15 Thread Mojca Miklavec
On 5/12/06, Christian Schenk [EMAIL PROTECTED] wrote:
 I would like to include texmfstart.exe in the MiKTeX distribution, but I
 don't know how to build texmfstart.exe. Is there a simple recipe
 (Makefile) I can start with?

Great news! MikTeX is going to be[come] ConTeXt-friendly again ;)

Thank you very much for the effort,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] how to create texmfstart.exe?

2006-05-12 Thread Christian Schenk
I would like to include texmfstart.exe in the MiKTeX distribution, but I 
don't know how to build texmfstart.exe. Is there a simple recipe 
(Makefile) I can start with?

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context