summaryrefslogtreecommitdiff
path: root/scripts/context/stubs/source/readme.txt
blob: 354d85b0920266f2512a77fc4062edb6ae14eaff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Copyright:

The originally 'runscript' program was written by in 2009 by
T.M.Trzeciak and is public domain. This derived mtxrun program
is an adapted version by Hans Hagen.

Comment:

In ConTeXt MkIV we have two core scripts: luatools.lua and
mtxrun.lua where the second one is used to launch other scripts.
Normally a user will use a call like:

mtxrun --script font --reload

Here mtxrun is a lua script. In order to avoid the usage of a cmd
file on windows this runner will start texlua directly. In TeXlive
a runner is added for each cmd file but we don't want that overhead
(and extra files). By using an exe we can call these scripts in
batch files without the need for using call.

We also don't want to use other runners, like those that use kpse
to locate the script as this is exactly what mtxrun itself is doing
already. Therefore the runscript program is adapted to a more direct
approach suitable for mtxrun.

Compilation:

with gcc (size optimized):

gcc -Os -s -shared -o mtxrun.dll mtxrun_dll.c
gcc -Os -s -o mtxrun.exe mtxrun_exe.c -L./ -lmtxrun

with tcc (ver. 0.9.24), extra small size

tcc -shared -o runscript.dll runscript_dll.c
tcc -o runscript.exe runscript_exe.c runscript.def