[tlbuild] adding scripts

T T t34www at googlemail.com
Sat May 29 13:12:47 CEST 2010


On 29 May 2010 06:50, Norbert Preining <preining at logic.at> wrote:
> On Sa, 29 Mai 2010, Taco Hoekwater wrote:
>> For example, for pstopdf, I have committed two new files and updated
>> another:
>>
>> Master/texmf-dist/scripts/context/stubs/mswin/pstopdf.exe
>>   (a copy of runscript.exe)

Do you mean TL's runscript.exe or context's mtxrun.exe?

>> Master/texmf-dist/scripts/context/stubs/unix/pstopdf
>>   (a short shell script running 'texmfstart pstopdf.rb')

Ah, then it must be a copy of mtxrun.exe on win32.

> Here you could do whatever you want, also if there is a proper shebank
> line you could use .../bin/arch/pstopdf -> ..../pstopdf.rb
>
>> Master/tlpkg/tlpsrc/context.tlpsrc
>>   (added the bin pattern)
>>
>> But this does not get the actual binaries in the correct bin
>> directory, does it? So, how to do that? Do I just commit a bunch
>> of Master/bin/*/ files?
>
> In principle yes, but you should also:
> - add the files to Build/source/texk/texlive/linked_scripts/$packagename
> - edit Build/source/texk/texlive/linked_scripts/Makefile.*
> that makes sure that on build with Build script the links are properly
> recreated.

But that is only for symlinked scripts, isn't it?  Shell stub-like
scripts only need to go under Master/bin/*/ and that's it I think (but
correct me if I'm wrong).

> For W32 you only make a copy in bin/win32 of the generic wrapper.

No, it has to be a copy of mtxrun.exe from context (the one that links
with mtxrun.dll) or else pstopdf.rb will be run through our
runscript.tlu launcher rather than texmfstart.exe.

> THe nightly cron run Master/tlpkg/bin/check-wrapper-consistency
> that should check that all the linked scripts in the unix bins
> and the wrappers on Windows agree

Yes, but we only check consistency for symlinks AFAIR. And since
contex's stubs are different anyway...

To summarize: if Taco wants to use shell stubs instead of symlinks,
then coping them to bin/ARCH/ (and the corresponding *.exe stubs to
bin/win32/) and adding binpaterns to context.tlpsrc should do the
trick.

Cheers,

Tomek



More information about the tlbuild mailing list