diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2023-02-28 19:06:16 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2023-02-28 19:06:16 +0000 |
commit | 5cebbf1c6ad22b87b80839d7dc8303bf2b9c0acf (patch) | |
tree | aa769a6f5d885d24aa3ee25bc3a9e50172f423ff /Master/bin/x86_64-darwinlegacy/context.lua | |
parent | b1d1b4ca0bd94bdf82c69a81ae6a69f3ac7dd8c3 (diff) |
Add luametatex and context for Solaris and Darwin
git-svn-id: svn://tug.org/texlive/trunk@66253 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/x86_64-darwinlegacy/context.lua')
-rw-r--r-- | Master/bin/x86_64-darwinlegacy/context.lua | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/bin/x86_64-darwinlegacy/context.lua b/Master/bin/x86_64-darwinlegacy/context.lua new file mode 100644 index 00000000000..da2442d85ab --- /dev/null +++ b/Master/bin/x86_64-darwinlegacy/context.lua @@ -0,0 +1,41 @@ +-- This file is a companion to "context(.exe)" and is effectively the same
+-- as:
+--
+-- mtxrun -script context ...
+--
+-- which will locate "mtx-context.lua" and load that one. The binary is a
+-- copy of "luametatex(.exe)" aka luatex 2.0 for context lmtx. In a similar
+-- fashion "mtxrun(.exe)" will load the "mtrun.lua" script.
+--
+-- The installation of context should do this on Windows:
+--
+-- luametatex.exe -> tex/texmf-win64/bin/luatex.exe
+-- luametatex.exe -> tex/texmf-win64/bin/mtxrun.exe
+-- luametatex.exe -> tex/texmf-win64/bin/context.exe
+-- mtxrun.lua -> tex/texmf-win64/bin/mtxrun.lua
+-- context.lua -> tex/texmf-win64/bin/context.lua
+--
+-- and this on Unix:
+--
+-- luametatex -> tex/texmf-linux-64/bin/luatex
+-- luametatex -> tex/texmf-linux-64/bin/mtxrun
+-- luametatex -> tex/texmf-linux-64/bin/context
+-- mtxrun.lua -> tex/texmf-linux-64/bin/mtxrun.lua
+-- context.lua -> tex/texmf-linux-64/bin/context.lua
+--
+-- The static binary is smaller than 3MB so the few copies provide no real
+-- overhead.
+
+local selfpath = os.selfpath
+
+if not arg or not selfpath then
+ print("invalid stub")
+ os.exit()
+end
+
+arg[0] = "mtxrun"
+
+table.insert(arg,1,"mtx-context")
+table.insert(arg,1,"--script")
+
+dofile(selfpath .. "/" .. "mtxrun.lua")
|