texlive[74666] Master/bin/windows/runscript.tlu: runscript.tlu:
commits+kakuto at tug.org
commits+kakuto at tug.org
Mon Mar 17 04:44:41 CET 2025
Revision: 74666
https://tug.org/svn/texlive?view=revision&revision=74666
Author: kakuto
Date: 2025-03-17 04:44:40 +0100 (Mon, 17 Mar 2025)
Log Message:
-----------
runscript.tlu: Support cllualatex and clxelatex. They did not work
due to Engine not specified error. This is because changed argline
is not used by dofile() for a lua script.
Modified Paths:
--------------
trunk/Master/bin/windows/runscript.tlu
Modified: trunk/Master/bin/windows/runscript.tlu
===================================================================
--- trunk/Master/bin/windows/runscript.tlu 2025-03-17 03:10:36 UTC (rev 74665)
+++ trunk/Master/bin/windows/runscript.tlu 2025-03-17 03:44:40 UTC (rev 74666)
@@ -843,11 +843,22 @@
progname = 'texdef'
argline = ' --tex latex ' .. argline
elseif progname == 'cllualatex' then
+-- Originally argline was changed to add '--engine=...'.
+-- However cllualatex and clxelatex did not work due to Engine
+-- not specified error. This is because changed argline is not
+-- used by dofile() for a lua script.
+-- Here we rewrite arguments directly. (2025/03/17)
progname = 'cluttex'
- argline = ' --engine=lualatex ' .. argline
+ for k = #arg, 1, -1 do
+ arg[k+1] = arg[k]
+ end
+ arg[1] = '--engine=lualatex'
elseif progname == 'clxelatex' then
progname = 'cluttex'
- argline = ' --engine=xelatex ' .. argline
+ for k = #arg, 1, -1 do
+ arg[k+1] = arg[k]
+ end
+ arg[1] = '--engine=xelatex'
end
-- general case
More information about the tex-live-commits
mailing list.